I'm sure this is simple but when searching maybe I didn't search for
the correct terms!

I have in my 'Users' Add() method assigned the id just created to a
variable in order to pass to the redirected page.  The redirected page
is another object called 'Projects'.

How would I pass this value?

I currently have in my Users::add method:

$idTemporary = $this->User->getLastInsertID();
$this->set($data['Project']['user_id'], $idTemporary);
$this->redirect('projects/add/');

I can show the id in the redirected page via setFlash but I wanted to
assign it to a hidden field.

Sorry of this is a dumb question,
Jamieh...


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