How can I set the HTML class attribute to a form using the FormBuilder in Symfony2 ?
HTML
class
FormBuilder
Symfony2
S
You can do it with FormBuilder. Add this to the array in your FormBuilder:
'attr'=> array('class'=>'span2')