Sorry I meant to remove the legend and label params and cake with
automagically create the correct legend from the field name.

Paul.

On Oct 15, 1:01 pm, gimmebucks <[email protected]> wrote:
> set the 'legend' to your desired name.
>
> On Oct 14, 3:02 pm, WebbedIT <[email protected]> wrote:
>
>
>
>
>
>
>
> > I think the problem is 'label'=>true as the label parameter allows you
> > to override the default label, it expects a string, not a true/false.
>
> > How would values of 'on' or 'off' be valid for a user_id field anyway?
>
> > HTH, Paul
>
> > On Oct 14, 3:57 am, ms_liz_87 <[email protected]> wrote:> I've tried to 
> > use this code to create my radio button. but when i view
> > > my page, the title is '1'. How i want to rename it into another name?
>
> > > echo $this->Form->input('user_id',
> > >                         array('label'=>true,'type' => 'radio',
> > >                          'div' => true,'legend' => false,
> > >                         'options' => array( 'On'=>'on', 'Off'=>'off' )
> > >                         ));

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to