比如,我indexController里面的 indexAction,因为用户没有穿参数,我要重定向到 errorAction里面
$this->dispatcher->forward(array( "controller" => "index", "action" => "error", "params" => array('step'=>2)));
那么获取参数是:
$this->dispatcher->getParam('step')
本文共 236 字,大约阅读时间需要 1 分钟。
比如,我indexController里面的 indexAction,因为用户没有穿参数,我要重定向到 errorAction里面
$this->dispatcher->forward(array( "controller" => "index", "action" => "error", "params" => array('step'=>2)));
那么获取参数是:
$this->dispatcher->getParam('step')
转载地址:http://aivtx.baihongyu.com/