2014-01-22 49 views
0

我刷新我的控制器页面return $this->redirect($this->request->here); 这很好。Cakephp重定向与变量

但我想添加一个GET变量的刷新。有谁知道如何做到这一点?

由于我使用的是路由,因此无法将Cakephp重定向功能与控制器和操作一起使用。所以this是不会为我工作

+0

有人多次: - http://stackoverflow.com/questions/2814777/cake-php-redirect-with-parameters-in-url - HTTP ://stackoverflow.com/questions/11177154/cakephp-passing-arguments-in-controllerredirect – kicaj

回答

1
return $this->redirect($this->request->here . '?key=val'); 
+0

是这么简单吗?哈哈感谢解决方案 – AgeDeO