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

  那么获取参数是:

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

  

相关文章:

  • 2021-11-21
  • 2021-11-03
  • 2021-12-15
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2022-03-09
猜你喜欢
  • 2021-08-27
  • 2021-10-17
  • 2021-06-07
  • 2022-12-23
  • 2021-06-30
  • 2021-12-24
  • 2022-12-23
相关资源
相似解决方案