private function __construct() { if (!self::$view) { self::$view = new view(); } if (!self::$CFG) { self::$CFG = $GLOBALS['CFG']; } if (!self::$debug) { self::$debug = isset(self::$CFG['debug']) ? self::$CFG['debug'] : true; } spl_autoload_register('self::autoLoader'); router::init(); }
/** *返回theme所在的url */ static function themeUrl() { return router::init()->base_url . '' . static::$theme_path . '/' . static::$theme; }