Blog
-
CakePHP radio button example
-
Cake 1.1
echo $html->radio( User/admin', array( 'no' => 'No', 'yes' => 'Yes'), null, array('value' => 'no') );Cake 1.2
echo $form->input('User.admin', array( 'div' => false, 'label' => true, 'type' => 'radio', 'options' => array(1 => 'Yes', 2 => 'N') );Classic html way:
<input type="radio" value="data[User][admin]" name="group1" /> Milk
Comments
tekst
teste

