For the first parameter of the "render" method, try passing it a view location or a page location from the CMS. Also, if you have a page created in the CMS and and view file, you may need to specify the "render_mode" => "cms" OR "render_mode" =&g…
The record class model should extend the "Data_record" class or the "Base_module_record" if you are creating a simple module. The table class models should extend "MY_Model" or "Base_module_model" (if you are creating a simple module). Then to acces…
The installer for the search module doesn't do much other then add "search" to the fuel/application/config/MY_fuel.php $config['modules_allowed'] parameter and adds a search permission in the database which can be added in the CMS through the Permis…
When you say the "variables page" do you mean the global.php variables file. If so, you can always use the global $CI object (e.g. get_instance()); and then load the model from that:
$CI->load->model('slider_model'); $vars['sliders'] = $CI->…
If you have "text_editor" configuration set to "ckeditor" in your fuel/application/config/MY_fuel.php file you can leverage ckeditors WYSIWYIG capabilities that does preserve some of that I believe.
Also, if you create a layout as a class, you can assign a "pre_process" hook that can be used to process the variables before delivering it to the view:
http://docs.getfuelcms.com/general/layouts
In short, you can't really do that. Pages not rendered through a normal controller get routed to the fuel/modules/fuel/controllers/page_router.php controller. So you won't be able to set controller variables on one controller (your BaseController) a…
You can also try using:
$vars = $this->fuel->pagevars->retrieve($location);
This will retrieve any variables assigned in a variables file or in the CMS.
If I'm understanding the controller correctly, it looks like you are setting a local $vars variable in the __construct method so the index method would never see it. If you assign the variable to $this->vars in the constructor and then pass $this…
You could try adding it to a variables file. The global variables file would load it for every request:
http://docs.getfuelcms.com/general/pages-variables
Also, something to consider, instead of creating a model for your slider, you could create a …
You can overwrite the your options_list method on your model. The signature is the following and is inherited from MY_Model:
function options_list($key = NULL, $val = NULL, $where = array(), $order = TRUE)
The first parameter is the value in the dro…
you can set the module property to "displayonly" => TRUE in your MY_fuel_modules.php file for your module. You can also set the "item_actions" => array() to hide action buttons.
Damn... that's a bug from the 1.0.3 release we didn't catch. I've posted a fix in the develop branch for the next patch release. Please test it out when you can and let me know if you have any further issues.
To debug the query you can uncomment line 294 in the base_module_model.php file. That's the query that gets run to display the list view.
Also, I'd set the $key_field to just 'coursesID' not wrapped in an array unless you have a compound key
Fuel assumes that the field is "id". To fix you'll need to do a select with an alias for ID in your list_items method:
function list_items($limit = NULL, $offset = NULL, $col = 'name', $order = 'desc', $just_count = FALSE) { $this->db->select…
What is the URI path to the page you are trying to upload images? Are you having any database troubles? That error is related to connection to the database.
That is because d/m/Y is not considered a valid strtotime format (m/d/Y is though):
http://stackoverflow.com/questions/2891937/strtotime-doesnt-work-with-dd-mm-yyyy-format