Zend Form Radio Default Checked

enzymnavabe

New Member
I have the next radio button group:\[code\]$enabled = $this->createElement('radio', 'enabled') ->setLabel('Enabled') ->setMultiOptions(array('1'=>'yes', '0'=>'no')) ->setValue($rank_values['enabled']) ->setAttrib('id', 'enabled') ->setAttrib('class', $action . '_enabled') ->setSeparator('');\[/code\]How can I set a checked radio? Now, when I open my script, there are not selected radio. I want to select 'yes'. How?Thank you.
 
Back
Top