Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 /**
  *返回theme所在的url
  */
 static function themeUrl()
 {
     return router::init()->base_url . '' . static::$theme_path . '/' . static::$theme;
 }