$form->input() should always be used to build your forms. If you use
input(), the $data from your controller will automatically populate
these form fields if not empty. If you use radio() or something else,
it will not. So just use input() and pass the type option.
And to answer your problem, just change the type to radio?
$form->input('Test.test', array('type' => 'radio', 'options' =>
$radio_btn, 'value' => 1, 'multiple' => true));
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---