Wednesday, November 12, 2014

Re: frustrating redirect issue

Try to debug the redirect in the AppController::beforeFilter() : http://stackoverflow.com/questions/2404977/debugging-a-browser-redirect-loop


Le mardi 11 novembre 2014 12:43:17 UTC+1, Δημήτρης Κρεμμύδας a écrit :
I have made this simple view-less action on a controller

function lala($id=null) { $this->redirect('http://google.com',null,false);}


and I get a redirecting loop (to controller/lala).

If I write the function as

function lala($id=null) { pr('ok');die;}

then it prints 'ok' and then complains that there is no view.

any ideas ?




ps1. I use 1.3.20
ps2. the isAuthorized is set to always 'return true'



--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: