As an inconstancy with other view helpers, formRadio doesn't give the radio buttons a unique id.
I came by this error while using Zend_Form, which depends on this View_Helper class
Zend_Form_Decorator_ViewHelper eventually calls the helper with something like seen below:
formRadio('subfrm', 'true', array('options' => array('true' => '', 'false' => ''), 'listsep' => ''));
This results in:
While the expected result would be something like:
A suggested fix would be:
// Wrap the radios in labels $radio = '_htmlAttribs($label_attribs) . '>' . (('prepend' == $labelPlacement) ? $opt_label : '') . '_htmlAttribs($attribs) . $endTag . (('append' == $labelPlacement) ? $opt_label : '') . '';
The preg replace is there to also address names with brackets. So subfrm with value true would be converted to subfrm-0-true. It was copied from Zend_Form_Decorator_ViewHelper, so i think it's safe, but didn't create it.