Hi,
I am creating a very custom form on a symfony project and currently I have something like this:
foreach ($foo as $c) {
$fields['crit_v_'.$c->getId()]=new sfWidgetFormInput(array('label'=>''));
$fields['crit_m_'.$c->getId()]=new sfWidgetFormTextarea(array('label'=>__($c->getName(),array(),'messages')));
}
As you can see I have 2 inputs foreach element, but I only want to have a label for the second one. Setting the label for the first one to null
or to ''
does not make symfony to not render this label and displays the default text for this label. (This means the for input is labeled crit_v_xx
.)
Is there any simple way to hide specific form labels?