And yet another question about the simple model tutorial
Setting up the form:
Which section of the user guide do I need to read in order to understand this paragraph:
"Also, adding the parsed_fields property to the model will tell it to parse any template syntax for the specified fields. The content_formatted field is a derived field that can be called on the record model so it is addes as well."
And can you maybe give an example on the function:
form_fields($values = array())
{
$fields = parent::form_fields($values);
//****Add custom form stuff here ***/// ------ Example here? What does it mean Add custom form stuff here? (By the way, there is a spelling mistake there: cusom instead of custom)
return $fields;
}
Comments
http://www.getfuelcms.com/user_guide/parsing
http://www.getfuelcms.com/user_guide/libraries/base_module_model
The //****Add custom form stuff here ***/// refers to the array of Form_builder fields that is returned by that method and is used by the CMS to display the form when adding/editing records. It may be helpful to look at any of the models in the fuel/modules/fuel/models/ folder as examples.
http://www.getfuelcms.com/user_guide/libraries/form_builder