[eluser]ilNotturno[/eluser]
Hi,
I had the same problem, but i found another solution, because the load function already check if the file exists or not.
The solution is to move variables:
Code:
$found = FALSE;
$loaded = FALSE;
From outside to inside "foreach" statement:
ERROR
Code:
function load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE)
{
$file = ($file == '') ? 'config' : str_replace(EXT, '', $file);
$found = FALSE;
$loaded = FALSE;
foreach ($this->_config_paths as $path)
{
$check_locations = defined('ENVIRONMENT')
? array(ENVIRONMENT.'/'.$file, $file)
: array($file);
GOOD!
Code:
function load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE)
{
$file = ($file == '') ? 'config' : str_replace(EXT, '', $file);
foreach ($this->_config_paths as $path)
{
$found = FALSE;
$loaded = FALSE;
$check_locations = defined('ENVIRONMENT')
? array(ENVIRONMENT.'/'.$file, $file)
: array($file);
Bye bye! Have a good coding