requestAction(string $url, array $options)
This function calls the controller action from anywhere and returns data from the action. Missing $ url - relative CakePHP URL (/controllername/actionname/params). To transfer additional data to the action of the receiving controller, add $ options to the array.
# echo $this->requestAction('/articles/view/5');
source
share