From f1ca12de414d8e050b2c5710b47f9c1b9fecff41 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 5 Mar 2015 15:36:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bcreate=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/create.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/library/think/create.php b/library/think/create.php index b72c9a2f..0d26c1bd 100644 --- a/library/think/create.php +++ b/library/think/create.php @@ -45,23 +45,23 @@ class Create { mkdir(APP_PATH.$module.'/'.$path); } foreach($file as $val){ - $filename = strtolower($val); + $filename = APP_PATH.$module.'/'.$path.'/'.strtolower($val).EXT; switch($path) { case 'controller':// 控制器 - if(!is_file(APP_PATH.$module.'/'.$path.'/'.$filename.'.php')) { - file_put_contents(APP_PATH.$module.'/'.$path.'/'.$filename.'.php',"