Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Forward to another Action from Action

Can I forward the dispatcher to another Action?

For example, by some reasons I want to display the "Not Found" page without continuing current Action. "Not Found" page is a separately Action in another Controller.


Yes, you can.

$this->dispatcher->forward(array( "controller" => "your-controller", "action" => "your-action" ));

return false;

For more details read:


I tried to use this method, but the small error in one of my dispatchers brake it. I fix this error and all is OK now.