[eluser]slapyo[/eluser]
I'm using the autoload packages and it's really handy. One thing I'd like to do but can't see to figure out how is to autoload config files with it.
Code:
$autoload['packages'] = array('/path/to/application');
Inside of /application I have /helpers, /libraries, and /models. Everything works great. I tried to add a /config folder and then put database.php inside of it. I deleted the database.php out of the site's config folder and loaded the site. I get the following error.
Quote:The configuration file database.php does not exist.
So I looked in /system/database/DB.php and saw this:
Code:
if ( ! defined('ENVIRONMENT') OR ! file_exists($file_path = APPPATH.'config/'.ENVIRONMENT.'/database.php'))
{
if ( ! file_exists($file_path = APPPATH.'config/database.php'))
{
show_error('The configuration file database.php does not exist.');
}
}
It's looking specifically in the /config or /config/ENVIRONMENT folders. Is there any way to get it to check for a config that is not in that location without editing files in the /system folder?