Tuesday, November 11, 2014

frustrating redirect issue

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: