autoload.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. |
  21. | 1. Packages
  22. | 2. Libraries
  23. | 3. Helper files
  24. | 4. Custom config files
  25. | 5. Language files
  26. | 6. Models
  27. |
  28. */
  29. /*
  30. | -------------------------------------------------------------------
  31. | Auto-load Packges
  32. | -------------------------------------------------------------------
  33. | Prototype:
  34. |
  35. | $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
  36. |
  37. */
  38. $autoload['packages'] = array();
  39. /*
  40. | -------------------------------------------------------------------
  41. | Auto-load Libraries
  42. | -------------------------------------------------------------------
  43. | These are the classes located in the system/libraries folder
  44. | or in your application/libraries folder.
  45. |
  46. | Prototype:
  47. |
  48. | $autoload['libraries'] = array('database', 'session', 'xmlrpc');
  49. */
  50. $autoload['libraries'] = array('');
  51. /*
  52. | -------------------------------------------------------------------
  53. | Auto-load Helper Files
  54. | -------------------------------------------------------------------
  55. | Prototype:
  56. |
  57. | $autoload['helper'] = array('url', 'file');
  58. */
  59. $autoload['helper'] = array('custom_func','url');
  60. /*
  61. | -------------------------------------------------------------------
  62. | Auto-load Config files
  63. | -------------------------------------------------------------------
  64. | Prototype:
  65. |
  66. | $autoload['config'] = array('config1', 'config2');
  67. |
  68. | NOTE: This item is intended for use ONLY if you have created custom
  69. | config files. Otherwise, leave it blank.
  70. |
  71. */
  72. $autoload['config'] = array('my_setting');
  73. /*
  74. | -------------------------------------------------------------------
  75. | Auto-load Language files
  76. | -------------------------------------------------------------------
  77. | Prototype:
  78. |
  79. | $autoload['language'] = array('lang1', 'lang2');
  80. |
  81. | NOTE: Do not include the "_lang" part of your file. For example
  82. | "codeigniter_lang.php" would be referenced as array('codeigniter');
  83. |
  84. */
  85. $autoload['language'] = array();
  86. /*
  87. | -------------------------------------------------------------------
  88. | Auto-load Models
  89. | -------------------------------------------------------------------
  90. | Prototype:
  91. |
  92. | $autoload['model'] = array('model1', 'model2');
  93. |
  94. */
  95. $autoload['model'] = array();
  96. /* End of file autoload.php */
  97. /* Location: ./application/config/autoload.php */