Closed
Description
I have a form with the method set to PUT which I custom render in a template, ie. I'm not using
{{ form(form) }}
or
{{ form_start(form) }}
{{ form_widget(form) }}
{{ form_end(form) }}
I do it more or less like this:
<form>
{{ form_errors(form) }}
{# render the columns in a way I need #}
{{ form_rest(form) }}
</form>
I believed adding the form_rest(form)
was enough to make sure non-rendered fields were added (like the _token). It turns out, the hidden field _method, isn't rendered unless you use form_start()
.
Shouldn't it be logical to have the form_rest also render the _method field if it isn't rendered so before?
The file that's rendering the form: