On Dec 19, 11:22 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> You should be setting all required data in your controller.  If you
> have
>
> $this->data = $this->User->read( null, $user_id );
>
> in your controller, then your form will automatically populate.

Yes but how does Cake know which controller to use? At the moment it's
trying to use the controller the URL is based on, not the one I want
it to use. Setting form->create('Table.fieldname') doesn't work -
tried that without success  - the helper is still using the wrong
model.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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