Esempio n. 1
0
 /**
  * Add a custom controller action to the list
  */
 public function addAction($action = '', $useverb = true)
 {
     if (!empty($action) && is_string($action)) {
         if ($useverb === true && $this->_use_verbs === true) {
             $action = $this->_method . '-' . $action;
         }
         $action = Sanitize::toCamelCase($action);
         $this->_actions[$action] = $action;
     }
 }