I have the same problem. There is no good way to do this that I found (near ZF 1.10.8)
' :
http://framework.zend.com/issues/browse/ZF-2977
. , , .
, .
, , , :
:
$radio = new Zend_Form_Element_Radio('MYRADIO');
$radio->addMultiOption('OPTION1', 'Option One')
->addMultiOption('OPTION2', 'Option Two');
$this->addElement($radio);
script, OPTION1:
echo $this->formRadio(
$this->form->MYRADIO->getFullyQualifiedName(),
$this->form->MYRADIO->getValue(),
null,
array('OPTION1' => $this->form->MYRADIO->getMultiOption('OPTION1'))
);
<input type="radio" /> <label>. , .
, , ViewScript, , .