- 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.
推薦閱讀
- SQL Server 從入門到項目實踐(超值版)
- Xcode 7 Essentials(Second Edition)
- Mastering Entity Framework
- Java Web基礎與實例教程
- Building a Recommendation Engine with Scala
- Visual C
- 大學計算機基礎(第2版)(微課版)
- Mastering Apache Spark 2.x(Second Edition)
- Learning AWS
- Android應用開發實戰
- Visual Basic程序設計全程指南
- Python 3 Object:oriented Programming(Second Edition)
- Java EE架構設計與開發實踐
- Switching to Angular 2
- Getting Started with SpriteKit