Hi everyone, i am creating my first application using cakephp rapid application development framework. What i want to do is for example, i have a function to check if user is allowed access to certain areas using ACL. If not then currently i am redirecting the user to the home page but i want to redirect the user to the referer page and not the home page. For example a user is in the login page say www.something.com/login and types www.something.com/viewallusers in the address bar, this user is not allowed access to this page, so i want him to go back to the page he came from, in this case, the login page.
Currently i am doing it in this way:
$this->redirect ($this->redirect("./") );
Thankyou.
2006-09-11
04:48:53
·
1 answers
·
asked by
Manish
5