0
votes

I'm using Symfony2 and TWIG to render the form, there is only this code in the TWIG template and the Symfony is rendering all rows:

{{ form_start(form) }}
{{ form_end(form) }}

In my previous project in Symfony I was able to render each field like this:

{{ form_start(form) }}
{{ form_row(form.name) }}
{{ form_end(form) }}
1
What is the question? - Bogdan Kuštan

1 Answers

2
votes

form_end outputs form_rest() if You do not set it to false (from documentation):

{{ form_end(form, {'render_rest': false}) }}