From 4e9d8249935c057f19c928cffe1885871bd1cbeb Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 5 Mar 2015 14:59:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bcreate=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/create.php | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/library/think/create.php b/library/think/create.php index 5b43994f..b72c9a2f 100644 --- a/library/think/create.php +++ b/library/think/create.php @@ -45,26 +45,24 @@ class Create { mkdir(APP_PATH.$module.'/'.$path); } foreach($file as $val){ + $filename = strtolower($val); switch($path) { - case 'controller':// 控制器 - $filename = strtolower($val).$path; - if(!is_file(APP_PATH.$module.'/'.$path.'/'.$filename.'.php')) { - file_put_contents(APP_PATH.$module.'/'.$path.'/'.$filename.'.php',"