Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
| 2 | /* |
| 3 | | ------------------------------------------------------------------- |
| 4 | | AUTO-LOADER |
| 5 | | ------------------------------------------------------------------- |
| 6 | | This file specifies which systems should be loaded by default. |
| 7 | | |
| 8 | | In order to keep the framework as light-weight as possible only the |
| 9 | | absolute minimal resources are loaded by default. For example, |
| 10 | | the database is not connected to automatically since no assumption |
| 11 | | is made regarding whether you intend to use it. This file lets |
| 12 | | you globally define which systems you would like loaded with every |
| 13 | | request. |
| 14 | | |
| 15 | | ------------------------------------------------------------------- |
| 16 | | Instructions |
| 17 | | ------------------------------------------------------------------- |
| 18 | | |
| 19 | | These are the things you can load automatically: |
| 20 | | |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame^] | 21 | | 1. Packages |
| 22 | | 2. Libraries |
| 23 | | 3. Helper files |
| 24 | | 4. Custom config files |
| 25 | | 5. Language files |
| 26 | | 6. Models |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 27 | | |
| 28 | */ |
| 29 | |
| 30 | /* |
| 31 | | ------------------------------------------------------------------- |
Phil Sturgeon | 9730c75 | 2010-12-15 10:50:15 +0000 | [diff] [blame^] | 32 | | Auto-load Packges |
| 33 | | ------------------------------------------------------------------- |
| 34 | | Prototype: |
| 35 | | |
| 36 | | $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); |
| 37 | | |
| 38 | */ |
| 39 | |
| 40 | $autoload['packages'] = array(APPPATH.'third_party'); |
| 41 | |
| 42 | |
| 43 | /* |
| 44 | | ------------------------------------------------------------------- |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 45 | | Auto-load Libraries |
| 46 | | ------------------------------------------------------------------- |
| 47 | | These are the classes located in the system/libraries folder |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 48 | | or in your application/libraries folder. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 49 | | |
| 50 | | Prototype: |
| 51 | | |
| 52 | | $autoload['libraries'] = array('database', 'session', 'xmlrpc'); |
| 53 | */ |
| 54 | |
| 55 | $autoload['libraries'] = array(); |
| 56 | |
| 57 | |
| 58 | /* |
| 59 | | ------------------------------------------------------------------- |
| 60 | | Auto-load Helper Files |
| 61 | | ------------------------------------------------------------------- |
| 62 | | Prototype: |
| 63 | | |
| 64 | | $autoload['helper'] = array('url', 'file'); |
| 65 | */ |
| 66 | |
| 67 | $autoload['helper'] = array(); |
| 68 | |
| 69 | |
| 70 | /* |
| 71 | | ------------------------------------------------------------------- |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 72 | | Auto-load Config files |
| 73 | | ------------------------------------------------------------------- |
| 74 | | Prototype: |
| 75 | | |
| 76 | | $autoload['config'] = array('config1', 'config2'); |
| 77 | | |
| 78 | | NOTE: This item is intended for use ONLY if you have created custom |
| 79 | | config files. Otherwise, leave it blank. |
| 80 | | |
| 81 | */ |
| 82 | |
| 83 | $autoload['config'] = array(); |
| 84 | |
| 85 | |
| 86 | /* |
| 87 | | ------------------------------------------------------------------- |
| 88 | | Auto-load Language files |
| 89 | | ------------------------------------------------------------------- |
| 90 | | Prototype: |
| 91 | | |
| 92 | | $autoload['language'] = array('lang1', 'lang2'); |
| 93 | | |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 94 | | NOTE: Do not include the "_lang" part of your file. For example |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 95 | | "codeigniter_lang.php" would be referenced as array('codeigniter'); |
| 96 | | |
| 97 | */ |
| 98 | |
| 99 | $autoload['language'] = array(); |
| 100 | |
| 101 | |
| 102 | /* |
| 103 | | ------------------------------------------------------------------- |
| 104 | | Auto-load Models |
| 105 | | ------------------------------------------------------------------- |
| 106 | | Prototype: |
| 107 | | |
| 108 | | $autoload['model'] = array('model1', 'model2'); |
| 109 | | |
| 110 | */ |
| 111 | |
| 112 | $autoload['model'] = array(); |
| 113 | |
| 114 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 115 | /* End of file autoload.php */ |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 116 | /* Location: ./application/config/autoload.php */ |