After working with CakePHP I've gotten used to doing HTTP redirection like this:
$this->redirect(array( 'controller' => 'controller_name', 'action' => 'action_name' ))
This way if the URL to that controller/action changed in the future, I wouldn't have to change all the instances that referenced this route. A URL may be subject to change in the future, while an action name rarely changes.
It seems in Phalcon I can only do
But this doesn't redirect to the URL defined in the router. I see there's this this option:
$this->response->redirect(array( 'controller' => 'controller_name', 'for' => 'action' ));
But this doesn't work, because the 'for' key must be meant for something other than an action name.