I’m new to CakePHP and i’m setting up an Acl controlled app. What I want to do is if the user isn’t logged in yet no matter where he tries to go he gets redirected to the login action, how would I manage to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You do it by setting up the AuthComponent, which does exactly that.
Auth handles the login, ACL handles the access rights.