When user comes to my site, http://xyz.com/, one of two things can happen:
- User not logged in
- I want users to redirect to
users/login
- I want users to redirect to
- User logged in(active session)
- I want users to redirect to
dashboard/
- I want users to redirect to
I've modified the routes:
Router::connect('/', array('controller' => 'users', 'action' => 'login'));
The login redirection is working fine and redirecting to dashboard, but when i click on homepage it is taking me to users/
Can anyone help me on this?