\Ini as ConfigIni; use Phalcon\Config\Adapter\Json as ConfigJson; use Phalcon\Config\Adapter\Php as ConfigPhp.../Config/json.json'); $ConfigPhp = new ConfigPhp('.....''; echo $ConfigPhp->database->username . ''; 我们再次请求会发现有如下输出 那么恭喜你已经成功读取到了配置文件 3.
领取专属 10元无门槛券
手把手带您无忧上云