admin | b0dd10f | 2006-08-25 17:25:49 +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 |
admin | d48ef1c | 2006-09-21 06:22:05 +0000 | [diff] [blame] | 13 | | request. |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 14 | | |
| 15 | | ------------------------------------------------------------------- |
| 16 | | Instructions |
| 17 | | ------------------------------------------------------------------- |
| 18 | | |
| 19 | | These are the things you can load automatically: |
| 20 | | |
admin | d48ef1c | 2006-09-21 06:22:05 +0000 | [diff] [blame] | 21 | | 1. Libraries |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 22 | | 2. Helper files |
| 23 | | 3. Plugins |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 24 | | 5. Custom config files |
| 25 | | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 26 | */ |
| 27 | |
| 28 | /* |
| 29 | | ------------------------------------------------------------------- |
admin | d48ef1c | 2006-09-21 06:22:05 +0000 | [diff] [blame] | 30 | | Auto-load Libraries |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 31 | | ------------------------------------------------------------------- |
admin | d48ef1c | 2006-09-21 06:22:05 +0000 | [diff] [blame] | 32 | | These are the classes located in the system/libraries folder |
| 33 | | or in your system/application/libraries folder. |
| 34 | | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 35 | | Prototype: |
| 36 | | |
admin | d48ef1c | 2006-09-21 06:22:05 +0000 | [diff] [blame] | 37 | | $autoload['libraries'] = array('database', 'session', 'xmlrpc'); |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 38 | */ |
| 39 | |
admin | b87cf23 | 2006-10-04 07:46:05 +0000 | [diff] [blame] | 40 | $autoload['libraries'] = array('database'); |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 41 | |
| 42 | |
| 43 | /* |
| 44 | | ------------------------------------------------------------------- |
| 45 | | Auto-load Helper Files |
| 46 | | ------------------------------------------------------------------- |
| 47 | | Prototype: |
| 48 | | |
| 49 | | $autoload['helper'] = array('url', 'file'); |
| 50 | */ |
| 51 | |
| 52 | $autoload['helper'] = array(); |
| 53 | |
| 54 | |
| 55 | /* |
| 56 | | ------------------------------------------------------------------- |
| 57 | | Auto-load Plugins |
| 58 | | ------------------------------------------------------------------- |
| 59 | | Prototype: |
| 60 | | |
| 61 | | $autoload['plugin'] = array('captcha', 'js_calendar'); |
| 62 | */ |
| 63 | |
| 64 | $autoload['plugin'] = array(); |
| 65 | |
| 66 | |
| 67 | /* |
| 68 | | ------------------------------------------------------------------- |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 69 | | Auto-load Config files |
| 70 | | ------------------------------------------------------------------- |
| 71 | | Prototype: |
| 72 | | |
| 73 | | $autoload['config'] = array('config1', 'config2'); |
| 74 | | |
| 75 | | NOTE: This item is intended for use ONLY if you have created custom |
| 76 | | config files. Otherwise, leave it blank. |
| 77 | | |
| 78 | */ |
| 79 | |
| 80 | $autoload['config'] = array(); |
| 81 | |
| 82 | |
admin | d48ef1c | 2006-09-21 06:22:05 +0000 | [diff] [blame] | 83 | /* |
| 84 | | ------------------------------------------------------------------- |
| 85 | | Auto-load Core Libraries |
| 86 | | ------------------------------------------------------------------- |
| 87 | | |
admin | abe1482 | 2006-09-22 00:14:38 +0000 | [diff] [blame] | 88 | | DEPRECATED: Use $autoload['libraries'] above instead. |
admin | d48ef1c | 2006-09-21 06:22:05 +0000 | [diff] [blame] | 89 | | |
| 90 | */ |
| 91 | // $autoload['core'] = array(); |
| 92 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 93 | |
| 94 | ?> |