默认的配置文件在conf文件夹下的config.php中,我现在在conf文件夹下还有个配置文件history_config.php 这个文件的配置写法也跟config.php一样 是 return array();
现在我想获取history_config.php中的值 要怎么写呢?

解决方案 »

  1.   

    $xxx = include_once("Conf/history_config.php");
      

  2.   

    要在action里面调用,这个貌似不起作用  最好 直接能用C调用就好了。。
      

  3.   

    能否用thinkphp的规则 调用到呢?
      

  4.   

    include_once(APP_PATH . "Conf/history_config.php");thinkphp 已经提供了加载扩展配置文件的功能
    见开发手册之 《3.8   扩展配置》
      

  5.   

    唠叨老大,为啥CSDN越来越卡了,是该优化一下,还是优化过头了
      

  6.   

    include_once(APP_PATH . "Conf/history_config.php");
    就用这种方法好了谢谢各位