Are you using img_path() or site_url() to insert images? FUEL has added a second parameter to the site_url() function to force it to https if set to TRUE.
If you do $comm->get_members(TRUE), it will return the teammembers_model with the active record where_in statement already applied so you can perform additional active record calls like so:
$committees = fuel_model('committees'); <? foreach($c…
I believe the reason is because the parent class method (Module::items()) calls both courses_model->list_items() and courses_model->list_items_total() with the latter used to get the total number of items for pagination. The method "list_items…
I use a Mac and have run into problems when trying to use the php command because it maps to the version that comes with OSX which has issues connecting to the database when run via ClI. The solution for me was to map the php command to the installe…
Use $this->get() instead of $this->db->get. $this->get will automatically wrap the returned results with your record class.
http://www.getfuelcms.com/user_guide/libraries/my_model/table_class_functions
It sounds like you need a route that allows username to be any value but "fuel". Perhaps you can use a negative look ahead regex or simply move your routes to after the fuel routes:
http://www.regular-expressions.info/lookaround.html
Hmm... I'm not seeing that locally. You mind posting the whole content of your model? And just to confirm, you don't have anything in a hook that may be changing that? The processing to save the name of the file should be happening around line 1995 …
There is a compound unique key assigned to the fuel_navigation table of group_id, location, parent_id, and language. Out of curiosity, why do you need a menu item at the same parent level that goes to the same link?
I've pushed some changes to help with this issue. It involves an update from FUEL (so you can pull) and a change to the blog permissions to install a blog/settings permission:
https://github.com/daylightstudio/FUEL-CMS/commit/adcc1f812c8b63d5602d4be…
To override the method, just create that method on your model like so:
function _common_query(){ //... put your content here or nothing at all if you don't want to have a "_common_query" }
The active = "yes" is being added by the Base_module_model::_common_query() which is inherited by your model and can be overwritten.
The _common_query() method is called on every find_* methods to apply extra active record syntax for your results …
Run the following afterward to see what SQL is being generated and test that SQL outside of FUEL in your MySQL management tool (e.g. Sequel Pro, phpMyAdmin):
$CI->members_model->debug_query();
That error appears to be because $_SERVER['SCRIPT_NAME'] is not properly set. Try changing that line in the fuel_constants.php to this (which is what it is in 1.0):
define('WEB_FOLDER', (count($_FUEL_SEGS) > 1) ? $_FUEL_SEGS[count($_FUEL_SEGS)-2]…
In your controller, try this to load the config:
$this->config->module_load(CHEAT_SHEET_FOLDER, 'cheat_sheet');
OR
$this->config->load(CHEAT_SHEET_FOLDER.'/cheat_sheet');
I'd try adding the following to your index.php bootstrap file to set $_SERVER variables that may not be set when running it via CLI. This is a snippet from the 1.0 beta:
if (defined('STDIN')) { /* if your FUEL installation exists in a subfolder, th…
Try FUEL_ROUTE for the constant in the route instead of FUEL_FOLDER (which doesn't have the trailing slash):
$route[FUEL_ROUTE.'tools/cheat_sheet'] = CHEAT_SHEET_FOLDER;
A couple things:
1. Remove the ".php" from the load->view statement in the controller.
2. Be sure to the module's name is added in the MY_fuel.php $config['fuel_dashboards'] array.
I found the issue. It had to do with the name having an underscore in it and the method being used to get the name of the module. That should be fixed in the latest push:
https://github.com/daylightstudio/FUEL-CMS/commit/78083ce8cd3deda2005fce69fb2e…
What happens if you add a Record class below it of "class Scratch_image_model" that extends Base_module_record?
class Scratch_image_model extends Base_module_record { }
I believe if you create a fuel/modules/membership/views/_variables/global.php file with those values in it (perhaps just include the application folders), it should work. The reason is because the setting of the view_module variable affects where FU…
They should work for simple modules only actually although simple modules can exist inside an advanced module.
If you inspect the select form field, does it have a class of something like the following:
class="field_type_multi add_edit scratch_imag…
I forgot to add the $params as the third parameter in my example above (have edited it). Are the $js and $css values declared in the views/_variables/global.php file?
Its intended to help if you make a CSS or JS change to a file, and you don't want people to use the cached version. Appending the ?c= with the timestamp info at the end will cause the browser to see it as a different version and not pull from the ca…