Something like this?
Model.field = name
legend removes the default legend
Type = radio
options sets value 1 -> displaytext
default sets default select to the second one
  e($form->input('Model.field',array
('legend'=>false,'type'=>'radio','options'=>array
('value1'=>'display1','value2'=>'display2'),'default'=>'value2')));



On Nov 12, 2:56 pm, Todd M <[EMAIL PROTECTED]> wrote:
> Hey,
>
> I can't seem to find in the cake docs and api what the $option array
> is for the radio form helper. In the cake1.2 documentation section
> 7.3.5 just doesn't seem to explain how to use it. Probably something
> easy, but not getting good google searches either.
>
> If I want to do something like this:
>
> <input type="radio" name="button_id" value="1"> This is button with
> value 1<br>
> <input type="radio" name="button_id" value="2"> This is button with
> value 2<br>
>
> But I can't seem to figure out the basics behind the form helper and
> using the $option array.
>
> BTW this is for an example. Need to know from a $form->radio how to
> control the name, and value. As well as what the text is afterwards.
>
> Thanks
>
> -TM
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to