From 5c8db926a6f26f1be22950a18b48e0e0dbfe47dc Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 25 Feb 2016 20:13:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84Build=E7=B1=BB=E6=94=AF?= =?UTF-8?q?=E6=8C=81CLASS=5FAPPEND=5FSUFFIX=E5=B8=B8=E9=87=8F=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Build.php | 19 ++++++++++--------- tpl/default_index.tpl | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/library/think/Build.php b/library/think/Build.php index 1285f432..86dd6887 100644 --- a/library/think/Build.php +++ b/library/think/Build.php @@ -97,16 +97,17 @@ class Build } else { // 生成相关MVC文件 foreach ($file as $val) { - $filename = $modulePath . $path . DS . $val . EXT; + $filename = $modulePath . $path . DS . $val . (CLASS_APPEND_SUFFIX ? ucfirst($path) : '') . EXT; $namespace = APP_NAMESPACE . '\\' . ($module ? $module . '\\' : '') . $path; + $class = $val . (CLASS_APPEND_SUFFIX ? ucfirst($path) : ''); switch ($path) { - case CONTROLLER_LAYER: // 控制器 - $content = "