Closed
Description
I'm using the following code in a Twig template with Symfony 2.1.2-DEV:
{{ form_widget(myForm, { 'attr': {'class': 'myClass'} }) }}
It appears that the entire attr array is not being passed to the widgets if form_widget()
is used with an entire form as an argument. If I call form_widget(myForm.field1, ...)
instead, the attr array is properly applied to the widget of field1.
Since the Twig reference does state that an entire form is a valid argument, I assume this is a bug.