I've got a subform, where I set a legend.
$dob = new Zend_Form_SubForm();
$dob->addElement($birthdayMonth)
->addElement($birthdayDay)
->setLegend('when is your birthday?');
How do I set the Legend so it won't escape the text?
Usually I'd get the decorator, but this doesn't work:
$decorator = $dob->getDecorator('Legend');
$decorator->setOption('escape'开发者_StackOverflow, false);
You can set the Fieldset decorator, it passes it to the Legend field.
$dob->getDecorator('Fieldset')
->setOption('escape', false);
精彩评论