Try requestAction: http://manual.cakephp.org/chapter/controllers
Regards, Ryan Rose Vice President Digiwize, Inc. One Technology Drive Tolland, CT 06084 e: [EMAIL PROTECTED] p: 860.730.2631 http://www.digiwize.com -----Original Message----- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of millZ Sent: Friday, September 14, 2007 7:25 PM To: Cake PHP Subject: get access from one controller to another Hello, how is it possible to call functions of a Controller (EventsController) in another Controller (VisitsController)? The models are connected with visits:belongsto Events events: hasMany Visits I've tried to call "$this->Visit->Event->isFriendEvent($eID)", but this ends with an error, because of an acces to the models. So what is the way to call the function "isFriendEvent" (defined in Eventscontroller) in VisitsController - i need it there. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---