That value gets merged in the fuel_header_jqx.php file and Fuel_admin file. It sets a javascript variable called "jqx_config.ckeditorConfig" which gets passed to CKEditor in the custom_fields.js file on the "fuel.fields.wysiwyg_field" method on lin…
I would use the on_after_post model method. This gets executed only on the edit page so you don't need to worry about redirecting if you were to use the save method outside of the context of the edit page.
If you are using the FUEL 1.0 beta (https:…
Hmm... I'm having trouble replicating the issue. What version of PHP are you running?
If it's early on in your project, I'd be curious if this is still an issue for you in 1.0. 1.0 has all the big modules like the blog separated out into their own …
Try changing your your constructor to pass "ufcm_users":
function __construct() { parent::__construct('ufcm_users', UFCM_FOLDER); // table name }
Also, this following line you are using the fuel_users.active in the where clause and by default …
For the model to load correctly, you need to have a file called categories_model.php located in the fuel/application/model directory. That file should contain the class name of Categories_model.php and should extend Base_module_model similar to your…
What kind of errors are you seeing?
Also, as an FYI, FUEL 1.0 beta has an updated tutorial using the 1.0 branch (which has ton of extra features including automatic relationships with has_many and belongs_to).
https://github.com/daylightstudio/FUEL…
In the fuel/modules/fuel/config/fuel.php file, there is an $config['tables'] array that maps key values to table names. You can overwrite those values in your MY_fuel.php file. It also may be helpful to debug the base_module_model::__construct meth…
The previous suggestion was if you were using a simple module to contain the data. For example, the blog_posts_model that has a content field that you want to display the content like so:
<?=$post->content_formatted?>
I guess my question is…
Try changing it to the following:
{site_url(pdf_path('FILENAME'))}
I'm curious as to how {site_url('{pdf_path('FILENAME')}')} was generated. Do you have recreation steps to do that?
Try adding the "parsed_fields" property to your model to tell FUEL to parse the field value automatically. It doesn't do it by default. It also needs to be done for any magic method calls to the field. For example, in your model, add the following a…
What is the URI path to your category (e.g. /blog/categories/test)? The blog's categories controller should automatically insert the category name into the title. That controller is located in fuel/modules/blog/controllers/categories.php.
I'm guessing yes for this next question but need to ask, is .htaccess enabled for that directory? mod_rewrite may be enabled but if .htaccess for that folder isn't enabled it won't work.
I'm not certain at this point. If you can get it working with CI, then chances are it will work in FUEL as well. If you do a query using CI, you can use the $this->projects_model->get() method or $this->projects_model->map_query_records(…
Is this a join you want made for all "find_" queries? If so, you can add both a "select" and a "join" to the _common_query() method like so:
function _common_query() { parent::_common_query(); $this->db->select('my_table.*, my_other_ta…
That appears to be a bug. I've pushed a fix for it in the repo:
https://github.com/daylightstudio/FUEL-CMS/commit/c3eab9897730971a4818cb5e9f1486f1c6e5858b
You can use normal CI active record in your models so something like this may work:
$this->db->join('my_table', 'my_table.id = my_other_table.id', 'left');
So you are needing a view file that displays project record information? If so, create a view file and add something like:
$projects = fuel_model('projects'); //the above is the equivalent to the following: //$CI =& get_instance(); //$CI->loa…
Oh... in that case, you can overwrite the "get_others" method that's inherited from the base_module_model.php file. By default, it returns an array of key/value pairs from the current module's table.
Is that dropdown select being automatically generated by a "foreign_key" property on the model? If so, you can overwrite that fields parameters in the form_fields method on your model. The example below is manually setting the values, however, if yo…