源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

解析CodeIgniter自定义配置文件

  • 时间:2022-12-16 23:14 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:解析CodeIgniter自定义配置文件
我们有时候在CI框架中需要自定义配置文件,那要怎么处理呢?下面就给你介绍处理的办法。 [b]配置文件config/expert.php [/b]
[u]复制代码[/u] 代码如下:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /**  * 专家配置文件  *  * @author xxx  * @version $Id: expert.php v 1.0 2012/5/31 14:41:00 xxx $  * @package ask.xxx.com  * @copyright 1997-2012 www.xxx.com  */ // 专家ID $config['expertid'] = array('0' => '124', '1' => '81', '2' => '136'); ?>
[b]获取配置数据示例 [/b] $this->config->load('expert', TRUE);  $expertid  = $this->config->item('expertid', 'expert');
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部