改进Build类

This commit is contained in:
thinkphp
2016-04-18 23:01:21 +08:00
parent 6152a41665
commit fa66950d5a

View File

@@ -105,6 +105,7 @@ class Build
} else {
// 生成相关MVC文件
foreach ($file as $val) {
$val = trim($val);
$filename = $modulePath . $path . DS . $val . (CLASS_APPEND_SUFFIX ? ucfirst($path) : '') . EXT;
$namespace = APP_NAMESPACE . '\\' . ($module ? $module . '\\' : '') . $path;
$class = $val . (CLASS_APPEND_SUFFIX ? ucfirst($path) : '');