- 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.
推薦閱讀
- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- 數(shù)據(jù)結(jié)構(gòu)和算法基礎(chǔ)(Java語言實現(xiàn))
- Blender 3D Incredible Machines
- C語言從入門到精通(第4版)
- Python:Master the Art of Design Patterns
- Python時間序列預(yù)測
- QGIS Python Programming Cookbook(Second Edition)
- 小型編譯器設(shè)計實踐
- RubyMotion iOS Develoment Essentials
- 從Excel到Python數(shù)據(jù)分析:Pandas、xlwings、openpyxl、Matplotlib的交互與應(yīng)用
- Distributed Computing in Java 9
- Software Development on the SAP HANA Platform
- Hands-On Dependency Injection in Go
- C/C++代碼調(diào)試的藝術(shù)(第2版)
- Java Web開發(fā)基礎(chǔ)與案例教程