autoload.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. /*
  4. | -------------------------------------------------------------------
  5. | AUTO-LOADER
  6. | -------------------------------------------------------------------
  7. | This file specifies which systems should be loaded by default.
  8. |
  9. | In order to keep the framework as light-weight as possible only the
  10. | absolute minimal resources are loaded by default. For example,
  11. | the database is not connected to automatically since no assumption
  12. | is made regarding whether you intend to use it. This file lets
  13. | you globally define which systems you would like loaded with every
  14. | request.
  15. |
  16. | -------------------------------------------------------------------
  17. | Instructions
  18. | -------------------------------------------------------------------
  19. |
  20. | These are the things you can load automatically:
  21. |
  22. | 1. Packages
  23. | 2. Libraries
  24. | 3. Drivers
  25. | 4. Helper files
  26. | 5. Custom config files
  27. | 6. Language files
  28. | 7. Models
  29. |
  30. */
  31. /*
  32. | -------------------------------------------------------------------
  33. | Auto-load Packages
  34. | -------------------------------------------------------------------
  35. | Prototype:
  36. |
  37. | $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
  38. |
  39. */
  40. $autoload['packages'] = array();
  41. /*
  42. | -------------------------------------------------------------------
  43. | Auto-load Libraries
  44. | -------------------------------------------------------------------
  45. | These are the classes located in system/libraries/ or your
  46. | application/libraries/ directory, with the addition of the
  47. | 'database' library, which is somewhat of a special case.
  48. |
  49. | Prototype:
  50. |
  51. | $autoload['libraries'] = array('database', 'email', 'session');
  52. |
  53. | You can also supply an alternative library name to be assigned
  54. | in the controller:
  55. |
  56. | $autoload['libraries'] = array('user_agent' => 'ua');
  57. */
  58. $autoload['libraries'] = array();
  59. /*
  60. | -------------------------------------------------------------------
  61. | Auto-load Drivers
  62. | -------------------------------------------------------------------
  63. | These classes are located in system/libraries/ or in your
  64. | application/libraries/ directory, but are also placed inside their
  65. | own subdirectory and they extend the CI_Driver_Library class. They
  66. | offer multiple interchangeable driver options.
  67. |
  68. | Prototype:
  69. |
  70. | $autoload['drivers'] = array('cache');
  71. |
  72. | You can also supply an alternative property name to be assigned in
  73. | the controller:
  74. |
  75. | $autoload['drivers'] = array('cache' => 'cch');
  76. |
  77. */
  78. $autoload['drivers'] = array();
  79. /*
  80. | -------------------------------------------------------------------
  81. | Auto-load Helper Files
  82. | -------------------------------------------------------------------
  83. | Prototype:
  84. |
  85. | $autoload['helper'] = array('url', 'file');
  86. */
  87. $autoload['helper'] = array('common');
  88. /*
  89. | -------------------------------------------------------------------
  90. | Auto-load Config files
  91. | -------------------------------------------------------------------
  92. | Prototype:
  93. |
  94. | $autoload['config'] = array('config1', 'config2');
  95. |
  96. | NOTE: This item is intended for use ONLY if you have created custom
  97. | config files. Otherwise, leave it blank.
  98. |
  99. */
  100. $autoload['config'] = array();
  101. /*
  102. | -------------------------------------------------------------------
  103. | Auto-load Language files
  104. | -------------------------------------------------------------------
  105. | Prototype:
  106. |
  107. | $autoload['language'] = array('lang1', 'lang2');
  108. |
  109. | NOTE: Do not include the "_lang" part of your file. For example
  110. | "codeigniter_lang.php" would be referenced as array('codeigniter');
  111. |
  112. */
  113. $autoload['language'] = array();
  114. /*
  115. | -------------------------------------------------------------------
  116. | Auto-load Models
  117. | -------------------------------------------------------------------
  118. | Prototype:
  119. |
  120. | $autoload['model'] = array('first_model', 'second_model');
  121. |
  122. | You can also supply an alternative model name to be assigned
  123. | in the controller:
  124. |
  125. | $autoload['model'] = array('first_model' => 'first');
  126. */
  127. $autoload['model'] = array();