We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to redirect to login page

Hi I don't know how to redirect to a login page if a user is not logged then it won't allow him/her to access inner pages



33.8k
Accepted
answer
edited Aug '14
return $this->response->redirect("controller/action");

controller/action normally will be login (if you have like that)