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

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

  那么获取参数是:

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

  

原文地址:https://www.cnblogs.com/achengmu/p/6298034.html