blob: c730abd055354f502cda500df61548959a9abfd9 [file] [log] [blame]
darwineld8bef8a2014-02-11 20:13:22 +01001<?php
darwineld8bef8a2014-02-11 20:13:22 +01002defined('BASEPATH') OR exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -05003
Derek Allard2067d1a2008-11-13 22:59:24 +00004/*
5| -------------------------------------------------------------------
6| AUTO-LOADER
7| -------------------------------------------------------------------
8| This file specifies which systems should be loaded by default.
9|
10| In order to keep the framework as light-weight as possible only the
11| absolute minimal resources are loaded by default. For example,
12| the database is not connected to automatically since no assumption
Derek Jones37f4b9c2011-07-01 17:56:50 -050013| is made regarding whether you intend to use it. This file lets
Derek Allard2067d1a2008-11-13 22:59:24 +000014| you globally define which systems you would like loaded with every
15| request.
16|
17| -------------------------------------------------------------------
18| Instructions
19| -------------------------------------------------------------------
20|
21| These are the things you can load automatically:
22|
Phil Sturgeon9730c752010-12-15 10:50:15 +000023| 1. Packages
24| 2. Libraries
dchill42f8f36db2012-08-30 14:17:28 -040025| 3. Drivers
26| 4. Helper files
27| 5. Custom config files
28| 6. Language files
29| 7. Models
Derek Allard2067d1a2008-11-13 22:59:24 +000030|
31*/
32
33/*
34| -------------------------------------------------------------------
Nic4673d422013-01-09 09:53:41 +020035| Auto-load Packages
Phil Sturgeon9730c752010-12-15 10:50:15 +000036| -------------------------------------------------------------------
37| Prototype:
38|
Derek Jones37f4b9c2011-07-01 17:56:50 -050039| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
Phil Sturgeon9730c752010-12-15 10:50:15 +000040|
41*/
Greg Aker44885382011-04-19 15:28:40 -050042$autoload['packages'] = array();
Phil Sturgeon9730c752010-12-15 10:50:15 +000043
Phil Sturgeon9730c752010-12-15 10:50:15 +000044/*
45| -------------------------------------------------------------------
Derek Jones37f4b9c2011-07-01 17:56:50 -050046| Auto-load Libraries
Derek Allard2067d1a2008-11-13 22:59:24 +000047| -------------------------------------------------------------------
Andrey Andreev9bb9d072015-07-10 12:41:25 +030048| These are the classes located in system/libraries/ or your
49| application/libraries/ directory, with the addition of the
50| 'database' library, which is somewhat of a special case.
Derek Allard2067d1a2008-11-13 22:59:24 +000051|
52| Prototype:
53|
Andrey Andreev3a627d12015-01-26 23:35:50 +020054| $autoload['libraries'] = array('database', 'email', 'session');
Andrey Andreev88cf55b2014-01-17 15:38:30 +020055|
56| You can also supply an alternative library name to be assigned
57| in the controller:
58|
59| $autoload['libraries'] = array('user_agent' => 'ua');
Derek Allard2067d1a2008-11-13 22:59:24 +000060*/
Luigi Santivetti57a98ca2020-10-13 22:55:51 +010061$autoload['libraries'] = array('database', 'session', 'form_validation');
Derek Allard2067d1a2008-11-13 22:59:24 +000062
Derek Allard2067d1a2008-11-13 22:59:24 +000063/*
64| -------------------------------------------------------------------
dchill42f8f36db2012-08-30 14:17:28 -040065| Auto-load Drivers
66| -------------------------------------------------------------------
Andrey Andreev9bb9d072015-07-10 12:41:25 +030067| These classes are located in system/libraries/ or in your
68| application/libraries/ directory, but are also placed inside their
69| own subdirectory and they extend the CI_Driver_Library class. They
dchill42f8f36db2012-08-30 14:17:28 -040070| offer multiple interchangeable driver options.
71|
72| Prototype:
73|
Andrey Andreev3a627d12015-01-26 23:35:50 +020074| $autoload['drivers'] = array('cache');
Andrey Andreev44d3b182016-02-15 14:37:14 +020075|
Andrey Andreev5fd4afd2016-02-15 14:39:59 +020076| You can also supply an alternative property name to be assigned in
Andrey Andreev44d3b182016-02-15 14:37:14 +020077| the controller:
78|
Andrey Andreev5fd4afd2016-02-15 14:39:59 +020079| $autoload['drivers'] = array('cache' => 'cch');
80|
dchill42f8f36db2012-08-30 14:17:28 -040081*/
dchill42f8f36db2012-08-30 14:17:28 -040082$autoload['drivers'] = array();
83
dchill42f8f36db2012-08-30 14:17:28 -040084/*
85| -------------------------------------------------------------------
Derek Jones37f4b9c2011-07-01 17:56:50 -050086| Auto-load Helper Files
Derek Allard2067d1a2008-11-13 22:59:24 +000087| -------------------------------------------------------------------
88| Prototype:
89|
90| $autoload['helper'] = array('url', 'file');
91*/
Luigi Santivetti57a98ca2020-10-13 22:55:51 +010092$autoload['helper'] = array('form', 'url');
Derek Allard2067d1a2008-11-13 22:59:24 +000093
Derek Allard2067d1a2008-11-13 22:59:24 +000094/*
95| -------------------------------------------------------------------
Derek Jones37f4b9c2011-07-01 17:56:50 -050096| Auto-load Config files
Derek Allard2067d1a2008-11-13 22:59:24 +000097| -------------------------------------------------------------------
98| Prototype:
99|
100| $autoload['config'] = array('config1', 'config2');
101|
102| NOTE: This item is intended for use ONLY if you have created custom
Derek Jones37f4b9c2011-07-01 17:56:50 -0500103| config files. Otherwise, leave it blank.
Derek Allard2067d1a2008-11-13 22:59:24 +0000104|
105*/
Derek Allard2067d1a2008-11-13 22:59:24 +0000106$autoload['config'] = array();
107
Derek Allard2067d1a2008-11-13 22:59:24 +0000108/*
109| -------------------------------------------------------------------
Derek Jones37f4b9c2011-07-01 17:56:50 -0500110| Auto-load Language files
Derek Allard2067d1a2008-11-13 22:59:24 +0000111| -------------------------------------------------------------------
112| Prototype:
113|
114| $autoload['language'] = array('lang1', 'lang2');
115|
Derek Jones37f4b9c2011-07-01 17:56:50 -0500116| NOTE: Do not include the "_lang" part of your file. For example
Derek Allard2067d1a2008-11-13 22:59:24 +0000117| "codeigniter_lang.php" would be referenced as array('codeigniter');
118|
119*/
Derek Allard2067d1a2008-11-13 22:59:24 +0000120$autoload['language'] = array();
121
Derek Allard2067d1a2008-11-13 22:59:24 +0000122/*
123| -------------------------------------------------------------------
Derek Jones37f4b9c2011-07-01 17:56:50 -0500124| Auto-load Models
Derek Allard2067d1a2008-11-13 22:59:24 +0000125| -------------------------------------------------------------------
126| Prototype:
127|
Andrey Andreev5a519db2013-01-12 04:19:19 +0200128| $autoload['model'] = array('first_model', 'second_model');
Derek Allard2067d1a2008-11-13 22:59:24 +0000129|
Andrey Andreev5a519db2013-01-12 04:19:19 +0200130| You can also supply an alternative model name to be assigned
131| in the controller:
132|
133| $autoload['model'] = array('first_model' => 'first');
Derek Allard2067d1a2008-11-13 22:59:24 +0000134*/
Derek Allard2067d1a2008-11-13 22:59:24 +0000135$autoload['model'] = array();