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