Example #1
0
 /**
  * 初次运行框时创建基础目录
  *
  * @return [type] [description]
  */
 public static function mkDirs()
 {
     if (is_dir('storage')) {
         self::$binded = true;
         return;
     }
     $dirs = array(APP_PATH . '/Common/Service', APP_PATH . '/Common/Provider', APP_PATH . '/Common/Common', APP_PATH . '/Common/Lang', APP_PATH . '/Common/Tag', APP_PATH . '/Common/Hook', APP_PATH . '/Home/Controller', APP_PATH . '/Home/Model', APP_PATH . '/Home/Api', APP_PATH . '/Home/View/Index', 'config', 'public', 'storage/cache', 'storage/log', 'storage/session', 'storage/view', 'storage/view/cache');
     foreach ($dirs as $dir) {
         is_dir($dir) or mkdir($dir, 0755, true);
     }
 }
Example #2
0
 /**
  * 初次运行框时创建基础目录
  *
  * @return [type] [description]
  */
 public static function mkDirs()
 {
     if (is_dir('Config')) {
         self::$binded = true;
         return;
     }
     $dirs = array('System/Service', 'System/Provider', 'System/Lang', 'System/Tag', 'System/Hook', self::$appPath . '/Home/Controller', self::$appPath . '/Home/Model', self::$appPath . '/Home/Api', self::$appPath . '/Home/View/Index', 'Config', 'Public');
     foreach ($dirs as $dir) {
         is_dir($dir) or mkdir($dir, 0755, true);
     }
 }