冬末花开2018-07-12 13:35:00 0 1 573
} // 自动读取配置文件 if (is_dir($path . 'config')) { $dir = $path . 'config'; } elseif (is_dir($this->configPath . $module)) { $dir = $this->configPath . $module; } $files = isset($dir) ? scandir($dir) : []; foreach ($files as $file) { if ('.' . pathinfo($file, PATHINFO_EXTENSION) === $this->configExt) { $filename = $dir . DIRECTORY_SEPARATOR . $file; $this->config->load($filename, pathinfo($file, PATHINFO_FILENAME)); } }
无忌哥哥 2018-07-12 13:36:271楼
然后你的问题是啥?
赞 +0添加回复