0

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
  • 1
    What is the question? Commented May 20, 2016 at 21:26

1 Answer 1

2

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

{{ form_end(form, {'render_rest': false}) }}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.