Symfony: forms

Rendering the Form

One of the simplest ways is to render the form tags and use form_widget() to render all of the fields:

{{ form_start(form, {'attr': {'class': 'my-form-class'} }) }}
    {{ form_widget(form) }}
{{ form_end(form) }}

If you need more control over how your fields are rendered, then you should use the more advanced ‘Form Theming’ method.