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',"