Reputation:
in my application am calling this line in case a particular case (if condition) from ajax call
$this->redirect('/login/login/');
But this was updating the particular div. I want to redirect the whole page. How to do it?
Thanks,
Upvotes: 0
Views: 1587
Reputation: 1090
I believe that you can supply a parameter to redirect which will change the controller.
In an application I have written I use:
$this->redirect(array('controller' => 'users', 'action' => 'login');
when I want to prompt the user for a login.
You can find the full documentation for redirect here
http://book.cakephp.org/view/425/redirect
Upvotes: 0
Reputation: 8616
you may need to do it the old way :)
window.opener.location.href = "new page";
Upvotes: 1