如何在Zend中为每个多个无线电表格元素删除“标签”装饰器?
DisableLoadDefaultDecorators & setSeparator 不会将其删除..
答案 0 :(得分:0)
$form = new Zend_Form();
$form->addElement('radio', 'radio', array(
'ignore' => true,
'label' => 'Add new material'
));
$element = $form->getElement('radio');
$element->removeDecorator('label');