From 2b5b84e9a5fbacea0ad26650a0b171db801709fd Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 8 Dec 2015 19:23:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E6=94=B9?= =?UTF-8?q?=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/create.php | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/library/think/create.php b/library/think/create.php index 9fb12262..8185666f 100644 --- a/library/think/create.php +++ b/library/think/create.php @@ -47,26 +47,30 @@ class Create mkdir(APP_PATH . $module . '/' . $path); } foreach ($file as $val) { - $filename = APP_PATH . $module . '/' . $path . '/' . strtolower($val) . EXT; - switch ($path) { - case 'controller': // 控制器 - if (!is_file($filename)) { - file_put_contents($filename, "