- CodeIgniter Web Application Blueprints
- Rob Foster
- 79字
- 2021-08-06 19:34:28
Autoloading common system resources
We also are autoloading various resources such as support for database access and session management. We need to specify that we're using these resources.
Open the autoload.php
file from /path/to/codeigniter/application/config/
in your text editor and find the following line:
$autoload['libraries'] = array();
Replace this line with the following:
$autoload['libraries'] = array('database', 'session');
This will ensure that the resources that are required in order to access the database and to manage sessions are always with us.
推薦閱讀
- 三維圖形化C++趣味編程
- 軟件測試技術指南
- Java Web程序設計任務教程
- Learning Probabilistic Graphical Models in R
- Android項目實戰:手機安全衛士開發案例解析
- Django 3.0入門與實踐
- Spring技術內幕:深入解析Spring架構與設計原理(第2版)
- Julia數據科學應用
- Hacking Android
- PowerDesigner 16 從入門到精通
- UX Design for Mobile
- Three.js權威指南:在網頁上創建3D圖形和動畫的方法與實踐(原書第4版)
- Practical Responsive Typography
- HTML5程序設計基礎教程
- Python for Secret Agents