diff --git a/library/think/create.php b/library/think/create.php index 7ab505be..357ed77e 100644 --- a/library/think/create.php +++ b/library/think/create.php @@ -72,10 +72,12 @@ class Create // 创建模块目录 mkdir(APP_PATH . $module); } - // 创建配置文件和公共文件 - self::buildCommon($module); - // 创建模块的默认页面 - self::buildHello($module); + if ('runtime' != $module) { + // 创建配置文件和公共文件 + self::buildCommon($module); + // 创建模块的默认页面 + self::buildHello($module); + } // 创建子目录和文件 foreach ($list as $path => $file) { @@ -100,13 +102,13 @@ class Create foreach ($file as $val) { $filename = $modulePath . $path . DS . Loader::parseName($val) . EXT; switch ($path) { - case CONTROLLER_LAYER: // 控制器 + case CONTROLLER_LAYER: // 控制器 $content = "*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: "微软雅黑"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }
欢迎使用 ThinkPHP!
欢迎使用 ThinkPHP5!