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