2014-01-22 66 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