Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Fieldset::forge()->add_model()
  • Hi all, 

    I use a model orm : 

    I have  for example in my model :

    protected static $_properties = array(
    'id',
    'tailex' => array(
                        'data_type' => 'int',
                        'label' => 'Examen réalisé :',
                        'form' => array (
                              'type' => 'radio',
                              'options' => 
                              array (
                                0 => 'Non',
                                1 => 'Oui',
                              ),
                            ), 
                       ),

    ----------------------

    And i want to use for generate the form. 
    I use  this for example : 

    $biometrie = new Model_Biometrie();
    echo Fieldset::forge('biometrie')->add_model($biometrie)->populate($biometrie, false)->build();

    but all the time i have this error : 

    Argument 3 passed to Fuel\Core\Fieldset::add() must be an array, boolean given, called in 

    thanks for all 



  • You will get this message if in a defined property, 'form' is not an array.

Howdy, Stranger!

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

In this Discussion