Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Model_Crud and Fieldset class
  • hi,
    is there any example that explains how to use Model_Crud with the Fieldset class!!?? 
    specially the structure of the Fieldset method called "add_model" and the "set_form_fields",cause i don't use the ORM.
  • HarroHarro
    Accepted Answer
    There is no integration between Fieldset and Model_Crud, only with ORM.

    But you could indeed add a set_form_fields() method to your models, that contains compatible logic, that creates the Fieldset instance if none is passed, and that populates that Fieldset with the correct fields.
  • thank you.

Howdy, Stranger!

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

In this Discussion