/** * Get the full file * * @param string $fileName * @return string/bool */ protected static function getFile($index = '', $app = '') { $fileName = strpos($index, ':') ? trim(substr($index, 0, strrpos($index, ':')), '/') . '.ini' : $index . '.ini'; if (empty($index)) { $fileName = 'config.ini'; } if (!empty($app)) { $app = 'app/' . $app . DIRECTORY_SEPARATOR; } $file = self::$baseDir . $app . $fileName; if (file_exists($file)) { self::$fileIndex = $file; return $file; } return FALSE; }