From cd5444213b85944e617a58976b88dcebaa482332 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 10 Apr 2013 14:35:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Create=E7=B1=BB=E5=92=8CModel?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Think/Create.php | 2 +- Think/Model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } }