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 | * |
| 7 | * NOTICE OF LICENSE |
Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 8 | * |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 9 | * Licensed under the Academic Free License version 3.0 |
Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 10 | * |
Derek Jones | 61df906 | 2011-10-21 09:55:40 -0500 | [diff] [blame] | 11 | * This source file is subject to the Academic Free License (AFL 3.0) that is |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 12 | * bundled with this package in the files license_afl.txt / license_afl.rst. |
| 13 | * It is also available through the world wide web at this URL: |
| 14 | * http://opensource.org/licenses/AFL-3.0 |
| 15 | * If you did not receive a copy of the license and are unable to obtain it |
| 16 | * through the world wide web, please send an email to |
| 17 | * licensing@ellislab.com so we can send you a copy immediately. |
| 18 | * |
| 19 | * @package CodeIgniter |
| 20 | * @author EllisLab Dev Team |
darwinel | 871754a | 2014-02-11 17:34:57 +0100 | [diff] [blame] | 21 | * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 22 | * @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0) |
| 23 | * @link http://codeigniter.com |
| 24 | * @since Version 1.0 |
| 25 | * @filesource |
| 26 | */ |
darwinel | d8bef8a | 2014-02-11 20:13:22 +0100 | [diff] [blame^] | 27 | defined('BASEPATH') OR exit('No direct script access allowed'); |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 28 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 29 | /* |
| 30 | | ------------------------------------------------------------------- |
| 31 | | AUTO-LOADER |
| 32 | | ------------------------------------------------------------------- |
| 33 | | This file specifies which systems should be loaded by default. |
| 34 | | |
| 35 | | In order to keep the framework as light-weight as possible only the |
| 36 | | absolute minimal resources are loaded by default. For example, |
| 37 | | the database is not connected to automatically since no assumption |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 38 | | is made regarding whether you intend to use it. This file lets |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 39 | | you globally define which systems you would like loaded with every |
| 40 | | request. |
| 41 | | |
| 42 | | ------------------------------------------------------------------- |
| 43 | | Instructions |
| 44 | | ------------------------------------------------------------------- |
| 45 | | |
| 46 | | These are the things you can load automatically: |
| 47 | | |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 48 | | 1. Packages |
| 49 | | 2. Libraries |
dchill42 | f8f36db | 2012-08-30 14:17:28 -0400 | [diff] [blame] | 50 | | 3. Drivers |
| 51 | | 4. Helper files |
| 52 | | 5. Custom config files |
| 53 | | 6. Language files |
| 54 | | 7. Models |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 55 | | |
| 56 | */ |
| 57 | |
| 58 | /* |
| 59 | | ------------------------------------------------------------------- |
Nic | 4673d42 | 2013-01-09 09:53:41 +0200 | [diff] [blame] | 60 | | Auto-load Packages |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 61 | | ------------------------------------------------------------------- |
| 62 | | Prototype: |
| 63 | | |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 64 | | $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 65 | | |
| 66 | */ |
| 67 | |
Greg Aker | 4488538 | 2011-04-19 15:28:40 -0500 | [diff] [blame] | 68 | $autoload['packages'] = array(); |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 69 | |
| 70 | |
| 71 | /* |
| 72 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 73 | | Auto-load Libraries |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 74 | | ------------------------------------------------------------------- |
| 75 | | These are the classes located in the system/libraries folder |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 76 | | or in your application/libraries folder. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 77 | | |
| 78 | | Prototype: |
| 79 | | |
dchill42 | f8f36db | 2012-08-30 14:17:28 -0400 | [diff] [blame] | 80 | | $autoload['libraries'] = array('database', 'email', 'xmlrpc'); |
Andrey Andreev | 88cf55b | 2014-01-17 15:38:30 +0200 | [diff] [blame] | 81 | | |
| 82 | | You can also supply an alternative library name to be assigned |
| 83 | | in the controller: |
| 84 | | |
| 85 | | $autoload['libraries'] = array('user_agent' => 'ua'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 86 | */ |
| 87 | |
| 88 | $autoload['libraries'] = array(); |
| 89 | |
| 90 | |
| 91 | /* |
| 92 | | ------------------------------------------------------------------- |
dchill42 | f8f36db | 2012-08-30 14:17:28 -0400 | [diff] [blame] | 93 | | Auto-load Drivers |
| 94 | | ------------------------------------------------------------------- |
| 95 | | These classes are located in the system/libraries folder or in your |
| 96 | | application/libraries folder within their own subdirectory. They |
| 97 | | offer multiple interchangeable driver options. |
| 98 | | |
| 99 | | Prototype: |
| 100 | | |
| 101 | | $autoload['drivers'] = array('session', 'cache'); |
| 102 | */ |
| 103 | |
| 104 | $autoload['drivers'] = array(); |
| 105 | |
| 106 | |
| 107 | /* |
| 108 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 109 | | Auto-load Helper Files |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 110 | | ------------------------------------------------------------------- |
| 111 | | Prototype: |
| 112 | | |
| 113 | | $autoload['helper'] = array('url', 'file'); |
| 114 | */ |
| 115 | |
| 116 | $autoload['helper'] = array(); |
| 117 | |
| 118 | |
| 119 | /* |
| 120 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 121 | | Auto-load Config files |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 122 | | ------------------------------------------------------------------- |
| 123 | | Prototype: |
| 124 | | |
| 125 | | $autoload['config'] = array('config1', 'config2'); |
| 126 | | |
| 127 | | 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] | 128 | | config files. Otherwise, leave it blank. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 129 | | |
| 130 | */ |
| 131 | |
| 132 | $autoload['config'] = array(); |
| 133 | |
| 134 | |
| 135 | /* |
| 136 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 137 | | Auto-load Language files |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 138 | | ------------------------------------------------------------------- |
| 139 | | Prototype: |
| 140 | | |
| 141 | | $autoload['language'] = array('lang1', 'lang2'); |
| 142 | | |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 143 | | NOTE: Do not include the "_lang" part of your file. For example |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 144 | | "codeigniter_lang.php" would be referenced as array('codeigniter'); |
| 145 | | |
| 146 | */ |
| 147 | |
| 148 | $autoload['language'] = array(); |
| 149 | |
| 150 | |
| 151 | /* |
| 152 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 153 | | Auto-load Models |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 154 | | ------------------------------------------------------------------- |
| 155 | | Prototype: |
| 156 | | |
Andrey Andreev | 5a519db | 2013-01-12 04:19:19 +0200 | [diff] [blame] | 157 | | $autoload['model'] = array('first_model', 'second_model'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 158 | | |
Andrey Andreev | 5a519db | 2013-01-12 04:19:19 +0200 | [diff] [blame] | 159 | | You can also supply an alternative model name to be assigned |
| 160 | | in the controller: |
| 161 | | |
| 162 | | $autoload['model'] = array('first_model' => 'first'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 163 | */ |
| 164 | |
| 165 | $autoload['model'] = array(); |
| 166 | |
| 167 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 168 | /* End of file autoload.php */ |
Andrey Andreev | 5a519db | 2013-01-12 04:19:19 +0200 | [diff] [blame] | 169 | /* Location: ./application/config/autoload.php */ |