I would like to build a form with label and inputs, but the class of them should be different. Code below creates the label for the input with same attr:
publi
The above is no longer correct, at least in the context I was using it. In Symfony 2.1 the solution is:
{{ form_label(form.item, label|default(null), { 'label_attr': { 'class': 'MYCLASS' } }) }}