Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
[METHOD] set_form_fields
  • How to write set_form_fields method? I can't find it in docs. I'd like to use validation specified in my model class with extended rules. I have found mentions how to done error fetch after ORM\ValidationFailed:
    Validation::instance('Model_Example')->show_errors()
    

    But how to use Extended rules within model?
  • set_form_fields() is defined in orm/classes/model.php. You pass it a Fieldset instance, on which you can define the fields.

Howdy, Stranger!

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

In this Discussion