示例#1
0
文件: mPHP.php 项目: baitongda/mPHP
 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();
 }
示例#2
0
 /**
  *返回theme所在的url
  */
 static function themeUrl()
 {
     return router::init()->base_url . '' . static::$theme_path . '/' . static::$theme;
 }