public static function getManager() { if (!isset(self::$_manager)) { self::$_manager = new Manager(['path' => App::getPath() . '/themes', 'baseUrl' => App::getUrl() . '/themes']); } return self::$_manager; }
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'; }