Re: radiobutton problem
@paul
that's what I just asked myself, as well :)
On 14 Okt., 09:02, WebbedIT <p...@webbedit.co.uk> 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 <elizeber...@gmail.com> 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home