guys. I've try another method. i remove 'label'=>true and for *'legend' =>
false*, i changed the value of false into 'User status'. Its works!

On 14 October 2011 18:18, euromark <[email protected]> wrote:

> @paul
> that's what I just asked myself, as well :)
>
>
> On 14 Okt., 09:02, 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
>



-- 
Regards,
Elizebert Eona.

-- 
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