您好,欢迎访问一九零五行业门户网

解析CodeIgniter自定义配置文件_PHP

ci框架
我们有时候在ci框架中需要自定义配置文件,那要怎么处理呢?下面就给你介绍处理的办法。
配置文件config/expert.php
复制代码 代码如下:
'124', '1' => '81', '2' => '136');
?>
获取配置数据示例
 $this->config->load('expert', true);
 $expertid  = $this->config->item('expertid', 'expert');
其它类似信息

推荐信息