增加配置目录常量 CONF_PATH 用于设置配置文件目录

This commit is contained in:
thinkphp
2016-05-25 23:00:31 +08:00
parent 0bffec6aaa
commit 4b743713a7
4 changed files with 19 additions and 18 deletions

View File

@@ -186,7 +186,7 @@ class Build
*/
protected static function buildCommon($module)
{
$filename = APP_PATH . ($module ? $module . DS : '') . 'config.php';
$filename = CONF_PATH . ($module ? $module . DS : '') . 'config.php';
if (!is_file($filename)) {
file_put_contents($filename, "<?php\n//配置文件\nreturn [\n\n];");
}