Question

When I want to split my form in twig, I use form_widget of form_row, but I have to write the form tag manually

<form action='path("form_action_path")' method='...'>

Is there a function in twig that allow me to generate this tag automatically?

Was it helpful?

Solution

As of Symfony 2.3, there is a form_start function:

{{ form_start(form) }}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top