Thankyou, for some reason I'd interpreted the request action as a way to access another view and not just the action of a controller, thanks for the clarification.
Grant -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bennett Sent: Wednesday, November 08, 2006 11:13 AM To: [email protected] Subject: Re: Controller calling an other controller? > Does someone have an example of 1 controller calling another? you'll be wanting 'requestAction' sir. Bascially, you call the full url from a controller or view, and the calls the method and returns the result, eg: // tests_controller function getData () { return $this->Test->findAll (); } // examples controller function index () { $tests = $this->requestAction ('/tests/getData'); } more info on http://manual.cakephp.org/chapter/controllers hth jon -- jon bennett t: +44 (0) 1225 341 039 w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
