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
[...@parĂ¡ ~]# links http://pa.slackwarebrasil.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---