增加ENV_PREFIX常量用于获取环境变量的配置前缀

改进配置参数的获取方法 自动判断是否存在环境变量 如果有设置则优先
This commit is contained in:
thinkphp
2015-03-06 12:37:01 +08:00
parent 7059ad069d
commit be881b84d2
2 changed files with 10 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ defined('MODEL_LAYER') || define('MODEL_LAYER', 'model');
defined('VIEW_LAYER') || define('VIEW_LAYER', 'view');
defined('CONTROLLER_LAYER') || define('CONTROLLER_LAYER', 'controller');
defined('APP_DEBUG') || define('APP_DEBUG', false); // 是否调试模式
defined('ENV_PREFIX') || define('ENV_PREFIX', 'T_'); // 环境变量的配置前缀
// 应用模式 默认为普通模式
defined('APP_MODE') || define('APP_MODE', function_exists('saeAutoLoader') ? 'sae' : 'common');