I cannot get an error when creating a radio form using the CakePHP form assistant.
This is what I have now.
$options=array('active'=>'Active','inactive'=>'Inactive'); echo $form->input('Status', array( 'type' => 'radio', 'id' => 'EntryStatus', 'name' => 'data[Entry][status]', 'options' => $options
));
What am I missing?
I am using CakePHP 1.2.7 and this is what I have in validation
'status' => array( 'notempty' => array( 'rule' => 'notempty', 'required' => true, 'message' => 'yo' ) )
I tried the answer from the Form Helper to create the Radio button in CakePHP , and instead it provided me with a selection form.
Thanks,
Tee
source share