Beispiel #1
0
 /**
  * Sets the name of the current controller.
  */
 private function __setControllerName()
 {
     $name = explode('\\', get_class($this));
     $name = array_pop($name);
     $name = substr($name, 0, strrpos($name, 'Controller'));
     $this->name = Inflector::underscore($name);
 }