protected function loadConfigFile($file) { if (pathinfo($file, PATHINFO_EXTENSION) == 'php') { return include $file; } else { return parse_ini_file($file, TRUE); } }