dilicms 是如歌把数据库放在shared/config/database.php文件
今天看了dilicms的数据库文件, 看它是放在了shared/config/database.php里面,分析了一下他修改了D:\php_work\dilicms\system\database/DB.php文件
if ( ! defined('ENVIRONMENT') OR ! file_exists($file_path = DILICMS_SHARE_PATH.'config/'.ENVIRONMENT.'/database.php'))
{
if ( ! file_exists($file_path = DILICMS_SHARE_PATH.'config/database.php'))
{
show_error('The configuration file database.php does not exist.');
}
}
他改了他的加载路径,使用了他自己的常量,不过他的升级有点麻烦了!!!
页:
[1]