On Wed, Mar 11, 2009 at 11:55 AM, Paco Gomez <paco.gomez.ar...@gmail.com> wrote:
>
> Hi,
>
> I'm newbie in cakephp, I have the typical form for Users with their
> profile information:
> Username
> SureName
> Email
> ...
>
> I don't know if it's possible to fill inputs fields of form in the
> view automaticly from the dataTable Users

You haven't said what you've tried already. When you do a find()
read() into $this->data the FormHelper will use that to fill in the
fields.

echo $form->input('User.email', array(other options here));

FormHelper will look for the value in $this->data['User']['email']. If
you're not sure that your find() is getting the correct data you can
put this somewhere in your form view:

debug($this->data);

Note that your fieldnames should be lowercase (and I think you meant
surname, not surename, btw).

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to