Ejemplo n.º 1
0
 public static function getManager()
 {
     if (!isset(self::$_manager)) {
         self::$_manager = new Manager(['path' => App::getPath() . '/themes', 'baseUrl' => App::getUrl() . '/themes']);
     }
     return self::$_manager;
 }
Ejemplo n.º 2
0
 public static function getClassName($controller, $module = null)
 {
     $ns = App::getControllerNameSpace();
     if ($module) {
         $ns .= '\\' . implode('\\', array_map('Tale\\Util\\StringUtil::camelize', explode('.', $module)));
     }
     return "{$ns}\\" . StringUtil::camelize($controller) . 'Controller';
 }