thinkphp 这个文件Think.class.php怎么这样写?

浏览:921 发布日期:2015/09/03 分类:求助交流
      Storage::connect(STORAGE_TYPE);

      $runtimefile  = RUNTIME_PATH.APP_MODE.'~runtime.php';
      if(!APP_DEBUG && Storage::has($runtimefile)){
          Storage::load($runtimefile);
      }else{
          if(Storage::has($runtimefile))
              Storage::unlink($runtimefile);
          $content =  '';
          // 读取应用模式
          $mode   =   include is_file(CONF_PATH.'core.php')?CONF_PATH.'core.php':MODE_PATH.APP_MODE.'.php';
          // 加载核心文件
          foreach ($mode['core'] as $file){
              if(is_file($file)) {
                include $file;
                if(!APP_DEBUG) $content   .= compile($file);
              }
          }
可以看到上面明明已经选择好了文件存储模式,那就得用规范的接口来处理,Storage::has()这样的,但是怎么下面又开始is_file($file)这样的了啊?
最佳答案
评论( 相关
后面还有条评论,点击查看>>