How to format formRadio() Zend Framework

georgeturkey

New Member
Hi I'm using formRadio() to display two options with radio buttons. Example \[code\]<li><?php echo $this->formRadio('johnsmith', '1', array(), array('1' => 'Yes', '0' => 'No'), ' '); ?></li>\[/code\]Getting HTML output\[code\]<li> <label for="johnsmith-1"> <input type="radio" name="johnsmith" id="johnsmith-1" value="http://stackoverflow.com/questions/3786175/1" checked="checked"> Yes </label></li><li> <label for="johnsmith-0"> <input type="radio" name="johnsmith" id="johnsmith-0" value="http://stackoverflow.com/questions/3786175/0"> No </label></li>\[/code\]but im looking HTML like\[code\]<li> <input type="radio" name="johnsmith" id="johnsmith-1" value="http://stackoverflow.com/questions/3786175/1" checked="checked"> <label for="johnsmith-1">Yes</label><li><li> <input type="radio" name="johnsmith" id="johnsmith-0" value="http://stackoverflow.com/questions/3786175/0"> <label for="johnsmith-0">No</label></li>\[/code\]Can anybody help me please ?
 
Back
Top