|
| 1 | +<?php |
| 2 | +defined('BASEPATH') OR exit('No direct script access allowed'); |
| 3 | + |
| 4 | +/* |
| 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 |
| 13 | +| is made regarding whether you intend to use it. This file lets |
| 14 | +| 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 | +| |
| 23 | +| 1. Packages |
| 24 | +| 2. Libraries |
| 25 | +| 3. Drivers |
| 26 | +| 4. Helper files |
| 27 | +| 5. Custom config files |
| 28 | +| 6. Language files |
| 29 | +| 7. Models |
| 30 | +| |
| 31 | +*/ |
| 32 | + |
| 33 | +/* |
| 34 | +| ------------------------------------------------------------------- |
| 35 | +| Auto-load Packages |
| 36 | +| ------------------------------------------------------------------- |
| 37 | +| Prototype: |
| 38 | +| |
| 39 | +| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); |
| 40 | +| |
| 41 | +*/ |
| 42 | +$autoload['packages'] = array(); |
| 43 | + |
| 44 | +/* |
| 45 | +| ------------------------------------------------------------------- |
| 46 | +| Auto-load Libraries |
| 47 | +| ------------------------------------------------------------------- |
| 48 | +| 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. |
| 51 | +| |
| 52 | +| Prototype: |
| 53 | +| |
| 54 | +| $autoload['libraries'] = array('database', 'email', 'session'); |
| 55 | +| |
| 56 | +| You can also supply an alternative library name to be assigned |
| 57 | +| in the controller: |
| 58 | +| |
| 59 | +| $autoload['libraries'] = array('user_agent' => 'ua'); |
| 60 | +*/ |
| 61 | +$autoload['libraries'] = array(); |
| 62 | + |
| 63 | +/* |
| 64 | +| ------------------------------------------------------------------- |
| 65 | +| Auto-load Drivers |
| 66 | +| ------------------------------------------------------------------- |
| 67 | +| 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 |
| 70 | +| offer multiple interchangeable driver options. |
| 71 | +| |
| 72 | +| Prototype: |
| 73 | +| |
| 74 | +| $autoload['drivers'] = array('cache'); |
| 75 | +| |
| 76 | +| You can also supply an alternative property name to be assigned in |
| 77 | +| the controller: |
| 78 | +| |
| 79 | +| $autoload['drivers'] = array('cache' => 'cch'); |
| 80 | +| |
| 81 | +*/ |
| 82 | +$autoload['drivers'] = array(); |
| 83 | + |
| 84 | +/* |
| 85 | +| ------------------------------------------------------------------- |
| 86 | +| Auto-load Helper Files |
| 87 | +| ------------------------------------------------------------------- |
| 88 | +| Prototype: |
| 89 | +| |
| 90 | +| $autoload['helper'] = array('url', 'file'); |
| 91 | +*/ |
| 92 | +$autoload['helper'] = array(); |
| 93 | + |
| 94 | +/* |
| 95 | +| ------------------------------------------------------------------- |
| 96 | +| Auto-load Config files |
| 97 | +| ------------------------------------------------------------------- |
| 98 | +| Prototype: |
| 99 | +| |
| 100 | +| $autoload['config'] = array('config1', 'config2'); |
| 101 | +| |
| 102 | +| NOTE: This item is intended for use ONLY if you have created custom |
| 103 | +| config files. Otherwise, leave it blank. |
| 104 | +| |
| 105 | +*/ |
| 106 | +$autoload['config'] = array(); |
| 107 | + |
| 108 | +/* |
| 109 | +| ------------------------------------------------------------------- |
| 110 | +| Auto-load Language files |
| 111 | +| ------------------------------------------------------------------- |
| 112 | +| Prototype: |
| 113 | +| |
| 114 | +| $autoload['language'] = array('lang1', 'lang2'); |
| 115 | +| |
| 116 | +| NOTE: Do not include the "_lang" part of your file. For example |
| 117 | +| "codeigniter_lang.php" would be referenced as array('codeigniter'); |
| 118 | +| |
| 119 | +*/ |
| 120 | +$autoload['language'] = array(); |
| 121 | + |
| 122 | +/* |
| 123 | +| ------------------------------------------------------------------- |
| 124 | +| Auto-load Models |
| 125 | +| ------------------------------------------------------------------- |
| 126 | +| Prototype: |
| 127 | +| |
| 128 | +| $autoload['model'] = array('first_model', 'second_model'); |
| 129 | +| |
| 130 | +| You can also supply an alternative model name to be assigned |
| 131 | +| in the controller: |
| 132 | +| |
| 133 | +| $autoload['model'] = array('first_model' => 'first'); |
| 134 | +*/ |
| 135 | +$autoload['model'] = array(); |
0 commit comments