码迷,mamicode.com
首页 > 其他好文 > 详细

加载扩展配置

时间:2018-06-18 16:00:57      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:ica   加载   xxx   turn   return   username   nbsp   config   扩展   

1.在Application/Home/Conf目录下新建 xxx.php,文件,内容如下:

 /**  xxx.php */

return array(

        arrray(

          ‘id‘=>1,

         ‘username‘=>‘root‘          

     ),

     array(

        ‘id‘=>2,

        ‘username‘=>‘test‘

     )

);

2.在同级的Config.php里编辑

  ‘LOAD_EXT_CONFIG‘=>array(‘ADMIN"=>‘xxx‘)

3.在controller/IndexController.class.php的方法里访问 

  print_r(C(‘ADMIN‘));

加载扩展配置

标签:ica   加载   xxx   turn   return   username   nbsp   config   扩展   

原文地址:https://www.cnblogs.com/indifferent/p/9195257.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!