Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Zend 中为每个多单选表单元素删除“标签”装饰器?
DisableLoadDefaultDecorators & setSeparator不会删除它..
$form = new Zend_Form(); $form->addElement('radio', 'radio', array( 'ignore' => true, 'label' => 'Add new material' )); $element = $form->getElement('radio'); $element->removeDecorator('label');