darwinel | d8bef8a | 2014-02-11 20:13:22 +0100 | [diff] [blame] | 1 | <?php |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
Phil Sturgeon | 07c1ac8 | 2012-03-09 17:03:37 +0000 | [diff] [blame] | 5 | * An open source application development framework for PHP 5.2.4 or newer |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 6 | * |
Andrey Andreev | bdb96ca | 2014-10-28 00:13:31 +0200 | [diff] [blame] | 7 | * This content is released under the MIT License (MIT) |
Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 8 | * |
Andrey Andreev | bdb96ca | 2014-10-28 00:13:31 +0200 | [diff] [blame] | 9 | * Copyright (c) 2014, British Columbia Institute of Technology |
Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 10 | * |
Andrey Andreev | bdb96ca | 2014-10-28 00:13:31 +0200 | [diff] [blame] | 11 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 12 | * of this software and associated documentation files (the "Software"), to deal |
| 13 | * in the Software without restriction, including without limitation the rights |
| 14 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 15 | * copies of the Software, and to permit persons to whom the Software is |
| 16 | * furnished to do so, subject to the following conditions: |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 17 | * |
Andrey Andreev | bdb96ca | 2014-10-28 00:13:31 +0200 | [diff] [blame] | 18 | * The above copyright notice and this permission notice shall be included in |
| 19 | * all copies or substantial portions of the Software. |
| 20 | * |
| 21 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 22 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 23 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 24 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 25 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 26 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 27 | * THE SOFTWARE. |
| 28 | * |
| 29 | * @package CodeIgniter |
| 30 | * @author EllisLab Dev Team |
darwinel | 871754a | 2014-02-11 17:34:57 +0100 | [diff] [blame] | 31 | * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
Andrey Andreev | bdb96ca | 2014-10-28 00:13:31 +0200 | [diff] [blame] | 32 | * @copyright Copyright (c) 2014, British Columbia Institute of Technology (http://bcit.ca/) |
| 33 | * @license http://opensource.org/licenses/MIT MIT License |
| 34 | * @link http://codeigniter.com |
| 35 | * @since Version 1.0.0 |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 36 | * @filesource |
| 37 | */ |
darwinel | d8bef8a | 2014-02-11 20:13:22 +0100 | [diff] [blame] | 38 | defined('BASEPATH') OR exit('No direct script access allowed'); |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 39 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 40 | /* |
| 41 | | ------------------------------------------------------------------- |
| 42 | | AUTO-LOADER |
| 43 | | ------------------------------------------------------------------- |
| 44 | | This file specifies which systems should be loaded by default. |
| 45 | | |
| 46 | | In order to keep the framework as light-weight as possible only the |
| 47 | | absolute minimal resources are loaded by default. For example, |
| 48 | | the database is not connected to automatically since no assumption |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 49 | | is made regarding whether you intend to use it. This file lets |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 50 | | you globally define which systems you would like loaded with every |
| 51 | | request. |
| 52 | | |
| 53 | | ------------------------------------------------------------------- |
| 54 | | Instructions |
| 55 | | ------------------------------------------------------------------- |
| 56 | | |
| 57 | | These are the things you can load automatically: |
| 58 | | |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 59 | | 1. Packages |
| 60 | | 2. Libraries |
dchill42 | f8f36db | 2012-08-30 14:17:28 -0400 | [diff] [blame] | 61 | | 3. Drivers |
| 62 | | 4. Helper files |
| 63 | | 5. Custom config files |
| 64 | | 6. Language files |
| 65 | | 7. Models |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 66 | | |
| 67 | */ |
| 68 | |
| 69 | /* |
| 70 | | ------------------------------------------------------------------- |
Nic | 4673d42 | 2013-01-09 09:53:41 +0200 | [diff] [blame] | 71 | | Auto-load Packages |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 72 | | ------------------------------------------------------------------- |
| 73 | | Prototype: |
| 74 | | |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 75 | | $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 76 | | |
| 77 | */ |
| 78 | |
Greg Aker | 4488538 | 2011-04-19 15:28:40 -0500 | [diff] [blame] | 79 | $autoload['packages'] = array(); |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 80 | |
| 81 | |
| 82 | /* |
| 83 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 84 | | Auto-load Libraries |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 85 | | ------------------------------------------------------------------- |
| 86 | | These are the classes located in the system/libraries folder |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 87 | | or in your application/libraries folder. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 88 | | |
| 89 | | Prototype: |
| 90 | | |
dchill42 | f8f36db | 2012-08-30 14:17:28 -0400 | [diff] [blame] | 91 | | $autoload['libraries'] = array('database', 'email', 'xmlrpc'); |
Andrey Andreev | 88cf55b | 2014-01-17 15:38:30 +0200 | [diff] [blame] | 92 | | |
| 93 | | You can also supply an alternative library name to be assigned |
| 94 | | in the controller: |
| 95 | | |
| 96 | | $autoload['libraries'] = array('user_agent' => 'ua'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 97 | */ |
| 98 | |
| 99 | $autoload['libraries'] = array(); |
| 100 | |
| 101 | |
| 102 | /* |
| 103 | | ------------------------------------------------------------------- |
dchill42 | f8f36db | 2012-08-30 14:17:28 -0400 | [diff] [blame] | 104 | | Auto-load Drivers |
| 105 | | ------------------------------------------------------------------- |
| 106 | | These classes are located in the system/libraries folder or in your |
| 107 | | application/libraries folder within their own subdirectory. They |
| 108 | | offer multiple interchangeable driver options. |
| 109 | | |
| 110 | | Prototype: |
| 111 | | |
| 112 | | $autoload['drivers'] = array('session', 'cache'); |
| 113 | */ |
| 114 | |
| 115 | $autoload['drivers'] = array(); |
| 116 | |
| 117 | |
| 118 | /* |
| 119 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 120 | | Auto-load Helper Files |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 121 | | ------------------------------------------------------------------- |
| 122 | | Prototype: |
| 123 | | |
| 124 | | $autoload['helper'] = array('url', 'file'); |
| 125 | */ |
| 126 | |
| 127 | $autoload['helper'] = array(); |
| 128 | |
| 129 | |
| 130 | /* |
| 131 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 132 | | Auto-load Config files |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 133 | | ------------------------------------------------------------------- |
| 134 | | Prototype: |
| 135 | | |
| 136 | | $autoload['config'] = array('config1', 'config2'); |
| 137 | | |
| 138 | | NOTE: This item is intended for use ONLY if you have created custom |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 139 | | config files. Otherwise, leave it blank. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 140 | | |
| 141 | */ |
| 142 | |
| 143 | $autoload['config'] = array(); |
| 144 | |
| 145 | |
| 146 | /* |
| 147 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 148 | | Auto-load Language files |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 149 | | ------------------------------------------------------------------- |
| 150 | | Prototype: |
| 151 | | |
| 152 | | $autoload['language'] = array('lang1', 'lang2'); |
| 153 | | |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 154 | | NOTE: Do not include the "_lang" part of your file. For example |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 155 | | "codeigniter_lang.php" would be referenced as array('codeigniter'); |
| 156 | | |
| 157 | */ |
| 158 | |
| 159 | $autoload['language'] = array(); |
| 160 | |
| 161 | |
| 162 | /* |
| 163 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 164 | | Auto-load Models |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 165 | | ------------------------------------------------------------------- |
| 166 | | Prototype: |
| 167 | | |
Andrey Andreev | 5a519db | 2013-01-12 04:19:19 +0200 | [diff] [blame] | 168 | | $autoload['model'] = array('first_model', 'second_model'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 169 | | |
Andrey Andreev | 5a519db | 2013-01-12 04:19:19 +0200 | [diff] [blame] | 170 | | You can also supply an alternative model name to be assigned |
| 171 | | in the controller: |
| 172 | | |
| 173 | | $autoload['model'] = array('first_model' => 'first'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 174 | */ |
| 175 | |
| 176 | $autoload['model'] = array(); |
| 177 | |
| 178 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 179 | /* End of file autoload.php */ |
Andrey Andreev | 5a519db | 2013-01-12 04:19:19 +0200 | [diff] [blame] | 180 | /* Location: ./application/config/autoload.php */ |