Too Many Redirect error if the redirect call is on the same controller |
I just noticed that when I call a redirect where the function is inside the same controller, it causes ERR_TOO_MANY_REDIRECTS error. However, when I call a redirect from another controller, it's working as expected.
Code: public function _remap($method)
Yes, if you redirect to the same URL, you will go into infinite loop.
So what should I do to stop the loop?
Code: admin/users Code: public function usersView(){ I'm just expecting it to go to URL: admin/users and then show the view.
Sorry, I don't understand why do you need infinite loop redirects.
|
Welcome Guest, Not a member yet? Register Sign In |