Welcome Guest, Not a member yet? Register   Sign In
"This webpage has a redirect loop"
#6

(11-23-2014, 02:38 PM)sv3tli0 Wrote: I think that the problem is in the model...

Code:
           if ($redir)
               redirect(current_url());

This code is terrible wrong specially at your case $redir is TRUE by default...
NEVER put redirects in your MODEL !!! There is the Logic not the Control !!!


Guys, you are all right!!!!!!!!!!! Problem solved!

I´m using this model from a course of CodeIgniter....this is not my style, and I´m agree with you 100%. I prefer things explicits.

Now, I already cut this "redirect" from the model, and from now on I´ll not use inside procedure!!!!

Thank you very much
Guapo
Learning PHP
Learning CodeIgniter
Reply


Messages In This Thread
"This webpage has a redirect loop" - by luisgama - 11-23-2014, 07:12 AM
RE: "This webpage has a redirect loop" - by luisgama - 11-24-2014, 03:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB