/**
  * @param string $name
  * @return string
  */
 protected function getControllerClassName($name)
 {
     $className = Inflector::camelize($name) . 'Controller';
     return $this->namespace . '\\' . $className;
 }
示例#2
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);
 }