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

源码网商城

CI框架中类的自动加载问题分析

  • 时间:2021-01-10 12:28 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:CI框架中类的自动加载问题分析
本文实例讲述了CI框架中类的自动加载问题。分享给大家供大家参考,具体如下: [b]application/config[/b] 配置文件中添加: | 1. Packages | 2. Libraries | 3. Helper files | 4. Custom config files | 5. Language files | 6. Models [b]1. 第三方库文件加载[/b]
// $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
$autoload['packages'] = array();

[b]2. 系统类库加载[/b]
// $autoload['libraries'] = array('database', 'session', 'xmlrpc');
$autoload['libraries'] = array('database','session','form_validation','pagination','upload','curl','user_agent');

[b]3. 帮助文件加载[/b]
// $autoload['helper'] = array('url', 'file');
$autoload['helper'] = array('url','cookie','form','captcha','string','html','array','date','file','common');

[b]4. 配置文件加载[/b]
// $autoload['config'] = array('config1', 'config2');
$autoload['config'] = array();

[b]5. 语言文件加载[/b]
// $autoload['language'] = array('lang1', 'lang2');
$autoload['language'] = array();

[b]6. 数据模型的自动加载[/b]
//$autoload['model'] = array('model1', 'model2');
$autoload['model'] = array('');

更多关于CodeIgniter相关内容感兴趣的读者可查看本站专题:《[url=http://www.1sucai.cn/Special/32.htm]codeigniter入门教程[/url]》、《[url=http://www.1sucai.cn/Special/445.htm]CI(CodeIgniter)框架进阶教程[/url]》、《[url=http://www.1sucai.cn/Special/155.htm]php优秀开发框架总结[/url]》、《[url=http://www.1sucai.cn/Special/39.htm]ThinkPHP入门教程[/url]》、《[url=http://www.1sucai.cn/Special/129.htm]ThinkPHP常用方法总结[/url]》、《[url=http://www.1sucai.cn/Special/546.htm]Zend FrameWork框架入门教程[/url]》、《[url=http://www.1sucai.cn/Special/43.htm]php面向对象程序设计入门教程[/url]》、《[url=http://www.1sucai.cn/Special/84.htm]php+mysql数据库操作入门教程[/url]》及《[url=http://www.1sucai.cn/Special/231.htm]php常见数据库操作技巧汇总[/url]》 希望本文所述对大家基于CodeIgniter框架的PHP程序设计有所帮助。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部