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

Reply via email to