phalcon: dispatcher->forward地址转发/重定向

比如,我indexController里面的
indexAction,因为用户没有穿参数,我要重定向到 errorAction里面
$this->dispatcher->forward(array(
    "controller" => "index",
    "action" => "error",
    "params" => array('step'=>2)
));

  那么获取参数是:

$this->dispatcher->getParam('step')

  

posted @ 2017-01-18 20:03  午火39  阅读(1625)  评论(0)    收藏  举报