0

如何在 Zend 中为每个多单选表单元素删除“标签”装饰器?

DisableLoadDefaultDecorators & setSeparator不会删除它..

4

1 回答 1

0
$form = new Zend_Form();
$form->addElement('radio', 'radio', array(
    'ignore'   => true,
    'label'     => 'Add new material'
));

$element = $form->getElement('radio');
$element->removeDecorator('label');
于 2013-07-22T05:18:44.130 回答