On Feb 27, 2:07 pm, rnd1221 <[email protected]> wrote: > The real question: how to pass the id of the newly created user record > so it > can be inserted into the administrator table along with the data > entered when the administrator form is filled out??
$this->ModelName->id should be set with the new ID after a successful insertion is completed. Then one solution would be to pass in this newly created ID as a named or un-named argument to the add controller (i.e. /administrators/add/3 or /administrators/add/userID:3). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
