Category | CakePHP functions - requestAction - a controller function |
Code Examples | Example: $this->set('tags',$this->requestAction('/tags/getList')); requestAction can get the result of another controller action. // getList action in another (tags_controller here) controller: function getList() { return $this->Tag->find('list'); } Requesting actions as opposed to redirecting is reserved for performing logic in another controller and pulling its results to the current controller, not for simply launching another action elsewhere in the application. |
Test Code | |
Links | |
Remarks | |
Cancel |