コード例 #1
0
ファイル: hdphp.php プロジェクト: com-itzcy/hdjob
 /**
  * 运行HD框架产品 
  */
 public static function run()
 {
     if (self::$is_run) {
         return;
     }
     self::$is_run = true;
     self::$compile = defined("COMPILE") ? COMPILE : true;
     self::Definition();
     //配置系统常量
     self::$boot = PATH_TEMP . '/boot.php';
     //核心编译文件
     if (self::$compile && is_file(self::$boot)) {
         require self::$boot;
         //如果编译文件存在加载核心编译文件boot.php
         application::run();
         //运行应用目录下的项目
         return;
     }
     self::compileCoreFile();
     //编译生成核心文件boot.php
     application::run();
     //运行应用目录下的项目
 }