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.

Response->redirect with route name

How I can use route name instead of location in redirect() function?



11.2k
Accepted
answer
$this->response->redirect(array('for' => "route-name"));
...
$this->response->redirect(array('for' => "route-name", 'id' => $someId));

Thanks.

$location parameter in Phalcon stubs defined as ┬ @param string $location┬╗. I'm confused.