Is it possible to disable individual options in a Zend_Form_Element_Radio
? That is, I'd like to add disabled="disabled"
to certain input tags.
Does the Zend Framework include this functionality? Or is there another way to accomplish this?
Yes, it is possible:
$element->setMultiOptions(array (
'songs' => 'songs',
'lyrics' => 'lyrics',
'artists' => 'artists'
));
$element->setAttrib('disable', array('lyrics', 'songs'));