There are a number of advanced modules on the website you can try out that may help. The blog one may be good so you can see both controllers operating the front end and the backend (note the config/blog_routes.php)
http://www.getfuelcms.com/develop…
Do you have the latest version of the blog from the develop branch?
If so, if you change that line to:
$where = array('post_id' => $this->id, $this->_parent_model->tables('blog_comments').'.published' => 'yes');
Does it fix your issu…
If you want to combine the fields into one form, you can add a text field in your players_model::form_fields method, you can add additional fields like the following:
public function form_fields($values = array(), $related = array()) { $fields = …
One thing to remember is that FUEL is based on CodeIgniter and leverages the same query building methods as CodeIgniter so those are always at your disposal like a normal CI model (e.g. $this->db->join(...)).
https://codeigniter.com/user_guide…
This sounds like a a dropdown that needs to be dynamically created based on the values of another dropdown correct? If so, check out the dependent field type:
http://docs.getfuelcms.com/general/forms#dependent
Use GIT to pull in from the master (or develop) branch. Resolve any conflicts you may have from files you've changed in your application folder (headers, footers, layouts, etc). Then run the fuel/install/upgrades/fuel_1.3_schema.sql change.
https://…
You can use a belongs_to. Fuel itself uses this in describing the relationships between Fuel_users_model (has_many fuel_permissions_model) and Fuel_permissions_model (belongs_to fuel_users_model).
Not at the moment... although, I don't think that would be too hard to add a value to the config and then check that before sending the email. If you find yourself adding that, please create a branch and submit a pull request and I'll add it to the …
There are a couple of ways:
1. You can use the field type of "file" with the parameter of "multiple":
http://docs.getfuelcms.com/general/forms#file
2. You can use the field type of "template" with the parameter of "repeatable" and the fields parame…
Thanks for the report. That's been fixed in the develop branch. The function name was changed to array_get in the Fuel MY_array_helper.php file a while back.
You could do the following:
$missions = $rec->get_missions(TRUE)->find_all(array(), 5);
The TRUE, returns the model with the wherein already applied instead of the IDs which allows for further active record querying (or limiting in your case)
I believe this is fixed in the develop branch of the blog:
https://github.com/daylightstudio/FUEL-CMS-Blog-Module/tree/develop
(requires some SQL updates in the install/updates folder)
I'm not quite sure I understand the question completely. Do you have an example?
One thing to note that if you have a has_many relationship like say a "tags" has_many relationship on an articles model, you can do the following to return the model i…
I see the issue. It is because you don't have a "display_field" specified in MY_fuel_modules config for your module is my guess and it is by default picking the first non-id field from the table automatically for the "display_field" parameter. This …
Would you mind posting the minimal code for your model and SQL to replicate your issue. I'm having a hard time replicating the issue given the current information. Thanks.
The default main layout has this setup already for you if you want to look at it (views/_layouts/main.php). It uses the $body variable that has a correlating body page variable specified in the layout fields found in fuel/application/config/MY_fuel_…
What is the value of $upload_data? You can run:
print_r($upload_data); exit();
The files will automatically get deleted upon attachment if the parameter "cleanup_attached" is set to TRUE (which it is by default). You can change it to FALSE (see the …
There's a couple places in the documentation that I think may help:
http://docs.getfuelcms.com/general/pages-variables
http://docs.getfuelcms.com/general/opt-in-controllers