87184
config/config.php 中 自定义的配置 和 禅道配置文件 加载先后顺序的问题
回帖数 1
阅读数 3032
发表时间 2017-12-06 14:47:32
// 如果将my.php定义“自定义的配置”而不是单纯的“MySQL”配置,那么是不是应该将其放到“禅道配置文件”之后更合适?
// 比如说我想要将 $config->accountRule 调整为邮箱格式,那么就没有办法在 my.php 文件中进行配置了,会被 zentaopms.php 覆盖
/* 引用自定义的配置。 Include the custom config file. */
$myConfig = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'my.php';if(file_exists($myConfig)) include $myConfig;
/* 禅道配置文件。zentaopms settings. */
$zentaopmsConfig = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'zentaopms.php';
if(file_exists($zentaopmsConfig)) include $zentaopmsConfig;
联系我们
联系人
高丽亚/高级客户经理
电话(微信)
17667930330
QQ号码
3645260865
联系邮箱
gaoliya@chandao.com

相关帖子
藏南 | 最后回帖 2019-07-29 09:28 王林
Roby.Ruan | 最后回帖 2017-06-20 17:08 石洋洋
一身肌肉的皮带 | 最后回帖 2025-03-07 09:09 马超
Chrysalis | 最后回帖 2016-12-15 10:34 石洋洋
李露露 | 最后回帖 2019-11-29 15:27 禅道-李锡碧
小屁孩儿 | 最后回帖 2017-07-27 15:42 石洋洋


石洋洋

精品资料包
1V1产品演示
免费试用增强功能
专属顾问答疑支持


