From fcb4478b3be10a474140cbcadb5fde54ad08d3b0 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 10 Dec 2015 15:40:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=94=9F=E6=88=90=20runtime=E6=A8=A1=E5=9D=97=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/create.php | 30 ++++++++++++++++-------------- tpl/default_index.tpl | 3 +-- 2 files changed, 17 insertions(+), 16 deletions(-) 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

'); + return '

:)

欢迎使用 ThinkPHP5

'; } } \ No newline at end of file