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 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);
 }