예제 #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
파일: view.php 프로젝트: samplecms/package
 /**
  *返回theme所在的url
  */
 static function themeUrl()
 {
     return router::init()->base_url . '' . static::$theme_path . '/' . static::$theme;
 }