English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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 in Computers & Internet Programming & Design

sorry not how i described above, but this way:
$this->redirect('./');

2006-09-12 11:34:47 · update #1

1 answers

Trying doing it without the object, $_REFERRER (search that on php.net , has good examples)

2006-09-12 03:18:49 · answer #1 · answered by Elmer Fudd 6 · 0 1

fedest.com, questions and answers