PHP code example of ienaga / phalcon-config-loader-for-yaml
1. Go to this page and download the library: Download ienaga/phalcon-config-loader-for-yaml library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ienaga / phalcon-config-loader-for-yaml example snippets
$loader = new Phalcon\Config\Adapter\Yaml\Loader();
return $loader
->setIgnore(["routing"]) // ignore yml names
->setEnvironment("stg") // default dev
->setBasePath(realpath(dirname(__FILE__) . "/../.."))
->load();