Example #1
0
 /**
  * Initialize $_beforeForwardInfo
  *
  * @return array Contents of $_beforeForwardInfo
  */
 protected function _initForward()
 {
     $this->_model = $this->getModel();
     $beforeForwardInfo = ['params' => ['one' => '111', 'two' => '222'], 'action_name' => 'ActionName', 'controller_name' => 'ControllerName', 'module_name' => 'ModuleName', 'route_name' => 'RouteName'];
     $this->_model->setParams($beforeForwardInfo['params']);
     $this->_model->setActionName($beforeForwardInfo['action_name']);
     $this->_model->setControllerName($beforeForwardInfo['controller_name']);
     $this->_model->setModuleName($beforeForwardInfo['module_name']);
     $this->_model->setRouteName($beforeForwardInfo['route_name']);
     $this->_model->initForward();
     return $beforeForwardInfo;
 }