> Also, make sure that your method ends with:
> return($datayouwanttoreturn);
Thank you! This is what I was missing. I'm so used to CakePHP being
magical that I assumed it'd to something amazing like return the $this-
>set variables automatically. Now that I've ended the method being
called with
It should work, you have to set requestaction equal to a variable if
you want the returned output, this is how I use it:
$results = $this->requestAction('/controller/method');
Also, make sure that your method ends with:
return($datayouwanttoreturn);
You can also define the function in your metho
Hi!
I'm trying to run another controller's unrelated method from within
the method of the page being accessed, in the hope I might be able to
get all the variables it's setting to avoid code duplication. It looks
like requestAction can do this very thing, but I can't seem to get it
to output anyt