Custom HTML Output On Zend Form Checkbox SetLabel Property
I am rendering a Zend Form Checkbox and I would like to render some custom html at its setlabel property. My form construct model $terms = new Zend_Form_Element_Checkbox('confirm_t
Solution 1:
You need to disable the auto-escaping of the label, following your example, you would use this code:
$this->form->confirm_terms->getDecorator('Label')->setOption('escape', false);
Post a Comment for "Custom HTML Output On Zend Form Checkbox SetLabel Property"