How do I load custom configuration files with codeigniter?
Yes, you can. Just place all your variables in an array, and save that array in a separate config file in system/application/config
.
Then, in your application code, load the config file like so:
$this->config->load($config_file);
Where $config_file
is the name of your config file, without the .php
extension.