Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Formatting fieldset form
  • Hi,
    I'm in the process of rewriting my app, so that it uses ORM and currently I'm trying to generate a bit more complex form. I'd like to use the bootstrap tabs with it, but I can't find a way to add HTML elements to the form, when using fieldsets.
    Is it possible?

    Thanks for any answer
  • HarroHarro
    Accepted Answer
    The fieldset generates a complete form, using the template defined in the forms config. This only works with relative simple forms, which bootstrap isn't.

    There are two options:
    - use the Fuel v2 Fieldset package
    - strip the forms config, build the HTML structure manually in your view, and use

    echo $fieldset->field('some_field')->build();

    to echo out individual fields of the fieldset, inside the bootstrap structure,

Howdy, Stranger!

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

In this Discussion