Hi,
Is there a simple way to declare CSS classes for Symfony form labels?
This doesn't work:
<?php echo $form['email']->renderLabel('class' => 'my-css') ?>
Found this and it works but it feels counter-intuitive, as it makes the form labels themselves obsolete by requiring the label to be written out in the template:
<?php echo $form['email']->renderLabel('This is a label text', array('class' => 'my-css') ?>
Anyone know a better way?
Thanks