Hello everyone.
I'm making my first steps in Phalcon and found a problem.
I'm trying to make controller redirect dispatcher to another action in the same controller:
public function beforeExecuteRoute($dispatcher)
{
$action = $dispatcher->getActionName();
$dispatcher->setActionName($action.'SomeSuffix');
}
However it does'nt seem to work. So my questions are:
- How can I make dispatcher to fire another action instead of action, it would execute? I want to do this in controller, not in routes definition.
- What is the setActionName() method for? It does'nt seem to make any difference?
Adam