Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中调用此行以防来自 ajax 调用的特定情况(如果条件)
$this->redirect('/login/login/');
但这正在更新特定的 div。我想重定向整个页面。怎么做?
谢谢,
you may need to do it the old way :)
window.opener.location.href = "new page";
我相信您可以提供一个参数来重定向,这将改变控制器。
在我编写的应用程序中,我使用:
$this->redirect(array('controller' => 'users', 'action' => 'login');
当我想提示用户登录时。
您可以在此处找到重定向的完整文档
http://book.cakephp.org/view/425/redirect