If the field you are really trying to work on is user_status rather
than user_id in your OP then you can take 'label' out of the params as
well.  Cake's automagic will know to label the field with a humanized
version of user_status (i.e. User Status).

HTH, Paul.

On Oct 15, 1:57 am, Elizebert Eona <[email protected]> wrote:
> 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 sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group
> > athttp://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