The correct is..
echo $this->Form->input('name', array('disabled' => 'disabled'));

CakePHP 2.1

Em sexta-feira, 13 de fevereiro de 2009 14h13min24s UTC-2, Marcelo F 
Andrade escreveu:
>
> On Fri, Feb 13, 2009 at 12:34 PM, [email protected]
> <[email protected]> wrote:
> >
> > How can I enabled readonly for this field?
> > I would use $form->input helper function
> > I try to set echo $form->input('name',array('readonly'=>true)); but it
> > doesn't work
>
> I think the correct is:
> echo $form->text('name', array('readonly'=> 'readonly'));
>
> To know more about html elements, give a try to W3Schools references:
> http://www.w3schools.com/tags/att_input_readonly.asp
>
> Best regards.
>
> --
> MARCELO DE F. ANDRADE (aka "eleKtron")
> Belem, PA, Amazonia, Brazil
> Linux User #221105
>
> [gus@parĂ¡ ~]# links http://pa.slackwarebrasil.org/
>
>

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