Centralized configuration

All the configuration needed by our application is kept in one folder, that is the config folder; this is very convenient and will make our application easy to configure. CodeIgniter doesn't need a lot of configuration, all we need to change can be found inside this folder. Among other files we can find:

  • autoload.php: Here we place the libraries, helpers, plugins, and so on. They will be loaded for every controller function throughout our application. Useful for autoloading database configuration or the libraries, helpers, and so on, you find that you are using a lot.
  • config.php: Our main configuration file, with important parameters such as base_url, charset, log, cache, and more.
  • database.php: Here our database configurations ...

Get CodeIgniter 1.7 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.