Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame^] | 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
| 5 | * An open source application development framework for PHP 5.1.6 or newer |
| 6 | * |
| 7 | * NOTICE OF LICENSE |
| 8 | * |
| 9 | * Licensed under the Academic Free License version 3.0 |
| 10 | * |
| 11 | * This source file is subject to the Open Software License (OSL 3.0) that is |
| 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 |
| 21 | * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/) |
| 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 | */ |
| 27 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 28 | /* |
| 29 | | ------------------------------------------------------------------- |
| 30 | | AUTO-LOADER |
| 31 | | ------------------------------------------------------------------- |
| 32 | | This file specifies which systems should be loaded by default. |
| 33 | | |
| 34 | | In order to keep the framework as light-weight as possible only the |
| 35 | | absolute minimal resources are loaded by default. For example, |
| 36 | | the database is not connected to automatically since no assumption |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 37 | | is made regarding whether you intend to use it. This file lets |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 38 | | you globally define which systems you would like loaded with every |
| 39 | | request. |
| 40 | | |
| 41 | | ------------------------------------------------------------------- |
| 42 | | Instructions |
| 43 | | ------------------------------------------------------------------- |
| 44 | | |
| 45 | | These are the things you can load automatically: |
| 46 | | |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 47 | | 1. Packages |
| 48 | | 2. Libraries |
| 49 | | 3. Helper files |
| 50 | | 4. Custom config files |
| 51 | | 5. Language files |
| 52 | | 6. Models |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 53 | | |
| 54 | */ |
| 55 | |
| 56 | /* |
| 57 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 58 | | Auto-load Packges |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 59 | | ------------------------------------------------------------------- |
| 60 | | Prototype: |
| 61 | | |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 62 | | $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 63 | | |
| 64 | */ |
| 65 | |
Greg Aker | 4488538 | 2011-04-19 15:28:40 -0500 | [diff] [blame] | 66 | $autoload['packages'] = array(); |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame] | 67 | |
| 68 | |
| 69 | /* |
| 70 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 71 | | Auto-load Libraries |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 72 | | ------------------------------------------------------------------- |
| 73 | | These are the classes located in the system/libraries folder |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 74 | | or in your application/libraries folder. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 75 | | |
| 76 | | Prototype: |
| 77 | | |
| 78 | | $autoload['libraries'] = array('database', 'session', 'xmlrpc'); |
| 79 | */ |
| 80 | |
| 81 | $autoload['libraries'] = array(); |
| 82 | |
| 83 | |
| 84 | /* |
| 85 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 86 | | Auto-load Helper Files |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 87 | | ------------------------------------------------------------------- |
| 88 | | Prototype: |
| 89 | | |
| 90 | | $autoload['helper'] = array('url', 'file'); |
| 91 | */ |
| 92 | |
| 93 | $autoload['helper'] = array(); |
| 94 | |
| 95 | |
| 96 | /* |
| 97 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 98 | | Auto-load Config files |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 99 | | ------------------------------------------------------------------- |
| 100 | | Prototype: |
| 101 | | |
| 102 | | $autoload['config'] = array('config1', 'config2'); |
| 103 | | |
| 104 | | 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] | 105 | | config files. Otherwise, leave it blank. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 106 | | |
| 107 | */ |
| 108 | |
| 109 | $autoload['config'] = array(); |
| 110 | |
| 111 | |
| 112 | /* |
| 113 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 114 | | Auto-load Language files |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 115 | | ------------------------------------------------------------------- |
| 116 | | Prototype: |
| 117 | | |
| 118 | | $autoload['language'] = array('lang1', 'lang2'); |
| 119 | | |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 120 | | NOTE: Do not include the "_lang" part of your file. For example |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 121 | | "codeigniter_lang.php" would be referenced as array('codeigniter'); |
| 122 | | |
| 123 | */ |
| 124 | |
| 125 | $autoload['language'] = array(); |
| 126 | |
| 127 | |
| 128 | /* |
| 129 | | ------------------------------------------------------------------- |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 130 | | Auto-load Models |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 131 | | ------------------------------------------------------------------- |
| 132 | | Prototype: |
| 133 | | |
| 134 | | $autoload['model'] = array('model1', 'model2'); |
| 135 | | |
| 136 | */ |
| 137 | |
| 138 | $autoload['model'] = array(); |
| 139 | |
| 140 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 141 | /* End of file autoload.php */ |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 142 | /* Location: ./application/config/autoload.php */ |