> where do I grab the lastInsertId()? in the event_controller? and > then how do I pass it to the user view?
provided you've correctly set up your model associations, which I think are: User hasMany Event Event belongsTo User >From your Users controller you can do: $event_id = $this->User->Event->getLastInsertId(); hth jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---