我想将参数从动作发送到不是视图的视图,因为每个动作都有它的 .phtml 视图。当我在 editAction 中时,我想重定向到 index.phtml 页面
在我所做的编辑操作中
$this->_helper->redirector->gotoRoute(array('module' => 'visits', 'controller' => 'visit', 'action' => 'index'), 'visit');
所以我不能在控制器动作中这样使用
$this->message="Successfully saved";
我在谷歌搜索我发现我可以使用
$this->getRequest()->setParam('message',"Successfully saved");
但是我怎样才能在 .PHTML 页面中获取参数