Re: [symfony-users] attributes of form fields

2011-05-03 Thread Bernhard Schussek
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

[symfony-users] attributes of form fields

2011-04-28 Thread lidaa
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