《PHP編程:CI框架中類的自動加載問題分析》要點:
本文介紹了PHP編程:CI框架中類的自動加載問題分析,希望對您有用。如果有疑問,可以聯系我們。
PHP學習本文實例講述了CI框架中類的自動加載問題.分享給大家供大家參考,具體如下:
PHP學習application/config
PHP學習配置文件中添加:
PHP學習| 1. Packages
| 2. Libraries
| 3. Helper files
| 4. Custom config files
| 5. Language files
| 6. Models
PHP學習1. 第三方庫文件加載
PHP學習
// $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
$autoload['packages'] = array();
PHP學習2. 系統類庫加載
PHP學習
// $autoload['libraries'] = array('database', 'session', 'xmlrpc');
$autoload['libraries'] = array('database','session','form_validation','pagination','upload','curl','user_agent');
PHP學習3. 幫助文件加載
PHP學習
// $autoload['helper'] = array('url', 'file');
$autoload['helper'] = array('url','cookie','form','captcha','string','html','array','date','file','common');
PHP學習4. 配置文件加載
PHP學習
// $autoload['config'] = array('config1', 'config2');
$autoload['config'] = array();
PHP學習5. 語言文件加載
PHP學習
// $autoload['language'] = array('lang1', 'lang2');
$autoload['language'] = array();
PHP學習6. 數據模型的自動加載
PHP學習
//$autoload['model'] = array('model1', 'model2');
$autoload['model'] = array('');
PHP學習更多關于CodeIgniter相關內容感興趣的讀者可查看本站專題:《codeigniter入門教程》、《CI(CodeIgniter)框架進階教程》、《php優秀開發框架總結》、《ThinkPHP入門教程》、《ThinkPHP常用方法總結》、《Zend FrameWork框架入門教程》、《php面向對象程序設計入門教程》、《php+mysql數據庫操作入門教程》及《php常見數據庫操作技巧匯總》
PHP學習希望本文所述對大家基于CodeIgniter框架的PHP程序設計有所幫助.
轉載請注明本頁網址:
http://www.snjht.com/jiaocheng/2608.html