Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Fieldset Class build() and Validation
  • I just try the build() function of the Fieldset class. It seems that the class render the field using table layout (<table>). How can I change how the Fieldset render the field? Next question is, how to set the validation in Fieldset class? Thanks
  • The form layout used by the fieldset class is in config/form.php. Copy it from core to app and modify it to your liking. You add validation rules when you add the fields. For models, the rules are defined in the $_properties array. You can access the validation object associated with the fieldset via $yourfieldsetobject->validation().

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion