$params['page'] = $page;
return $this->dispatcher->forward(array(
"controller" => "index",
"action" => "index",
"params" => $params
));
代表跳轉到index控制器中的index方法,params爲參數
注意這裏前面一定要加return 不然沒有用的
網上看到的一些資料都沒有加return
$params['page'] = $page;
return $this->dispatcher->forward(array(
"controller" => "index",
"action" => "index",
"params" => $params
));
代表跳轉到index控制器中的index方法,params爲參數
注意這裏前面一定要加return 不然沒有用的
網上看到的一些資料都沒有加return