选择语言 :

 Bootstrap::get_config_file_by_path

null Bootstrap::get_config_file_by_path( )
File: ./core/bootstrap.php
protected static function get_config_file_by_path(&$config_files, $paths, $runtime = false)
{
    foreach ($paths as $path)
    {
        $config_file = $path . 'config' . EXT;

        if (is_file($config_file))
        {
            $config_files[] = $config_file;
        }

        if ($runtime && self::$core_config['runtime_config'])
        {
            $config_file = $path . 'config.'. self::$core_config['runtime_config'] .'.runtime'. EXT;

            if (is_file($config_file))
            {
                $config_files[] = $config_file;
            }
        }
    }
}