Example #1
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 \Zend\Controller\Request\AbstractRequest $request
  * @return string
  */
 public function getActionMethod(Request\AbstractRequest $request)
 {
     $action = $request->getActionName();
     if (empty($action)) {
         $action = $this->getDefaultAction();
         $request->setActionName($action);
     }
     return $this->formatActionName($action);
 }