Hi,
You can pass custom attributes in the template:
{{ form_widget(field, { 'attr': { 'class': 'foobar' } }) }}
Cheers,
Bernhard
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed t
Hello everyone,
I am looking for the equivalent of that in Symfony2:
$ w = new sfWidgetFormInputText ();
$ w-> setAttribute ('class', 'foo');
Thank you in advance.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this m