implements Phalcon\DispatcherInterface, Phalcon\DI\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface
This is the base class for Phalcon\Mvc\Dispatcher and Phalcon\CLI\Dispatcher. This class can’t be instantiated directly, you can use it to create your own dispatchers
Phalcon\Dispatcher constructor
Sets the dependency injector
Returns the internal dependency injector
Sets the events manager
Returns the internal event manager
Sets the default action suffix
Sets the module where the controller is (only informative)
Gets the module where the controller class is
Sets the namespace where the controller class is
Gets a namespace to be prepended to the current handler name
Sets the default namespace
Returns the default namespace
Sets the default action name
Sets the action name to be dispatched
Gets the lastest dispatched action name
Sets action params to be dispatched
Gets action params
Set a param by its name or numeric index
Gets a param by its name or numeric index
Returns the current method to be/executed in the dispatcher
Checks if the dispatch loop is finished or has more pendent controllers/tasks to disptach
Sets the latest returned value by an action manually
Returns value returned by the lastest dispatched action
Dispatches a handle action taking into account the routing parameters
Forwards the execution flow to another controller/action Dispatchers are unique per module. Forwarding between modules is not allowed
$this->dispatcher->forward(array('controller' => 'posts', 'action' => 'index'));
Check if the current executed action was forwarded by another one
Possible class name that will be located to dispatch the request
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Dispatcher.html