diff --git a/Think/Create.php b/Think/Create.php index aef7a68f..2c93f95f 100644 --- a/Think/Create.php +++ b/Think/Create.php @@ -52,7 +52,7 @@ class Create { case 'Model': // 模型 $filename = ucwords($val).$path; if(!is_file(APP_PATH.$module.'/'.$path.'/'.$filename.'.php')) { - file_put_contents(APP_PATH.$module.'/'.$path.'/'.$filename.'.php',"_scope[$method])){// 命名范围的单独调用支持 return $this->scope($method,$args[0]); }else{ - throw exception(__CLASS__.':'.$method.L('_METHOD_NOT_EXIST_')); + E(__CLASS__.':'.$method.L('_METHOD_NOT_EXIST_')); return; } }