« All helpers
Extends a form with a "Custom Fields" section that displays inputs for any ExtendedModel-based class.
Usage:
Add this to your form view template:
{! admin/util/extended?extends=blog\Post&name=Blog+Posts !}
For update forms, pass the extended field values as well:
{! admin/util/extended?extends=blog\Post&name=Blog+Posts&values=[extra|none]&id=[id] !}
->update_extended()
For update forms, call this in the form handler function, before calling $post->put ():
$post->put ()
$post->update_extended ();
Create a link to edit the custom fields for a given class somewhere in your app:
<a href="/admin/extended?extends=blog\Post&name=Blog Posts">{"Custom Fields"}</a>
Extends a form with a "Custom Fields" section that displays inputs for any ExtendedModel-based class.
Usage:
1. Call the helper
Add this to your form view template:
For update forms, pass the extended field values as well:
2. Call
->update_extended()
on your ExtendedModelFor update forms, call this in the form handler function, before calling
$post->put ()
:3. Add a link to manage the custom fields
Create a link to edit the custom fields for a given class somewhere in your app: