Example #1
0
 /**
  * Forward request with next action
  * 
  * @param  array $next 
  * @return void
  */
 public function forward(EvHttp_Controller_Request_Abstract $next)
 {
     $this->getRequest()->setModuleName($next->getModuleName())->setControllerName($next->getControllerName())->setActionName($next->getActionName())->setParams($next->getParams())->setDispatched(false);
 }
Example #2
0
 /**
  * Determine the action name
  *
  * First attempt to retrieve from request; then from request params
  * using action key; default to default action
  *
  * Returns formatted action name
  *
  * @param EvHttp_Controller_Request_Abstract $request
  * @return string
  */
 public function getActionMethod(EvHttp_Controller_Request_Abstract $request)
 {
     $action = $request->getActionName();
     if (empty($action)) {
         $action = $this->getDefaultAction();
         $request->setActionName($action);
     }
     return $this->formatActionName($action);
 }