- 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.
推薦閱讀
- Learning Python Web Penetration Testing
- TypeScript Essentials
- 零基礎學C++程序設計
- Boost C++ Application Development Cookbook(Second Edition)
- Java應用開發與實踐
- Learning RabbitMQ
- DevOps Automation Cookbook
- NumPy Essentials
- Linux網絡程序設計:基于龍芯平臺
- 從0到1:Python數據分析
- Julia高性能科學計算(第2版)
- 學習OpenCV 4:基于Python的算法實戰
- 數據結構:Python語言描述
- Java語言程序設計實用教程(第2版)
- Laravel 5.x Cookbook