**手动加载配置项**
`适用于加载配置指定地址的配置文件`
![](https://img.kancloud.cn/f9/70/f9705d77c906b5664c8f90262d3a225b_2400x1832.png)
```
//目录配置文件路径
define('CONFIG_PATH',__DIR__.'/config/');
$conf = (new config\Config())->load(CONFIG_PATH,'cache');
(new config\Config())->set(['name1' => 'value1', 'name2' => 'value2'], 'default');
$confs = (new config\\Config())->get('default');
if((new config\Config())->has('defaults')) {
echo"true";
}
```