如何修改文件config.php或者加载自定义的配置文件
2017-02-25
展开全部
下面我的自定义的配置文件,请参考:(包含两个内容,1是数据库的配置;2.Smarty的配置)
<?php
$db_host = "localhost";
$db_user = "root";
$db_pwd = "wuji1234";
$db_database = "test1";
$conn = "PHP100";
$coding = "GBK";
//define(ALL_PS,"PHP100");
//=================
$smarty_template_dir ='./templates/';
$smarty_complie_dir ='./templates_c/';
$smarty_config_dir ='./configs/';
$smarty_cache_dir ='./cache/';
$smarty_caching = FALSE;
$smarty_delimiter =explode("|","{|}");
?>
<?php
$db_host = "localhost";
$db_user = "root";
$db_pwd = "wuji1234";
$db_database = "test1";
$conn = "PHP100";
$coding = "GBK";
//define(ALL_PS,"PHP100");
//=================
$smarty_template_dir ='./templates/';
$smarty_complie_dir ='./templates_c/';
$smarty_config_dir ='./configs/';
$smarty_cache_dir ='./cache/';
$smarty_caching = FALSE;
$smarty_delimiter =explode("|","{|}");
?>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询