tp5配置文件加载顺序
2018-01-13 16:59:31 0 举报
tp5配置文件加载顺序
作者其他创作
大纲/内容
加载APP_PATH . $module.'init.php
文件APP_PATH . $module.'init.php'是否存在?
文件RUNTIME_PATH. 'init.php'是否存在?
convention.php
Y
结束
导入CONF_PATH.$module.'tags.php'
加载CONF_PATH.'conf.php'
导入CONF_PATH.'tags.php'
加载CONF_PATH.'database.php'
加载RUNTIME_PATH. $module.'init.php
加载CONF_PATH.config('app_status')'.php'
加载CONF_PATH.$module.'conf.php'
加载CONF_PATH.'extra/*.php'
加载CONF_PATH.$module.config('app_status')'.php'
系统配置文件的优先级最高,在base.php中加载设置
加载CONF_PATH.$module.'database.php'
N
这部分加载模块下配置文件
文件APP_PATH . 'init.php'是否存在?
加载RUNTIME_PATH. 'init.php
文件RUNTIME_PATH. $module.'init.php'是否存在?
加载CONF_PATH.'$module.extra/*.php'
加载APP_PATH . 'init.php
收藏
0 条评论
下一页