Ok, so maybe this is where I was confused. if ever I want a set of radio buttons, I should use the form->input? Is this true for all form widgets (check box, text box, etc.)
Then what is $form->radio ($fieldName, $options=array(), $attributes=array()). I'm fine with using the input. I'm just confused then what the form->radio is used for. (end user override?) http://book.cakephp.org/view/727/radio And looking at the example below you specify a Model.field. If I'm not using a model, can I use just a different string? I'm getting the impression yes, but don't want to go down the wrong path. Thank you for your help. -TM On Nov 12, 7:30 pm, thatsgreat2345 <[EMAIL PROTECTED]> wrote: > 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 cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---