Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Questions about Fieldset
  • a) how can i put fieldset's field within a custom HTML tag like <p> ?
    b) how can i add csrf field to fieldset?
  • A) you can check core/config/form.php file to define fields wrapper On CSRF I haven't use that yet .... Sorry
  • b)

    I successed that.

    $user_form = Fieldset::forge('user_form');
    $user_form->add(Config::get('security.csrf_token_key'),'',array('type'=>'hidden','value'=>Security::fetch_token()));
  • Even faster:

    $fieldset->form()->add_csrf();

Howdy, Stranger!

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

In this Discussion