mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
增加ENV_PREFIX常量用于获取环境变量的配置前缀
改进配置参数的获取方法 自动判断是否存在环境变量 如果有设置则优先
This commit is contained in:
1
base.php
1
base.php
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user