On Mon, Jun 15, 2009 at 4:00 PM, Ashu<[email protected]> wrote:
>
> Thanks.
>
> This is what I did in my view for add.ctp
>
> echo $form->input('user_id',array('value' => $user['User']['id']));
>
>
> But, I would like to make this statement invisible, as I am pulling
> this data for a logged-in user and he does not really need to see his
> ID.

My bad. I meant to change that to:

echo $form->hidden('user_id',array('value' => $user['User']['id']));

This creates a hidden field, which is usually what one wants for a model ID.

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

Reply via email to