I am building a form which uses 2 models, I do this:
$fieldset = Fieldset::forge('register_form');
$fieldset->add_model('Model_Ntk_User');
$fieldset->add_model('Model_Ntk_Users_Social_Network');
But some fields has same name, how can I solve that?. I found a method set_form_fields, but not much info about it.
In Yii, in example you can build a model using CActiveRecord (if
linked to a table) or CFormModel to build Contact forms in example, how
this is done with fuelPHP, model_crud?
If I use html form (not build using fieldset) how can I use
validation without adding the validation rules in the controller, since
they are already set on $_properties in the model?
I have created an Observer which adds values to fields like
ip_added and date_added, but first is triggered the Observers: Typing
and Validation, since those fields are set to "not null" Typing observer
throw an exception. So far I have fix it making those fields "null" but
I think that is bad idea.
It looks like you're new here. If you want to get involved, click one of these buttons!