PHP code example of ienaga / phalcon-router-for-yaml
1. Go to this page and download the library: Download ienaga/phalcon-router-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-router-for-yaml example snippets
$di->set("router", function () {
return \Phalcon\Mvc\Router\Adapter\Yaml::load(
new \Phalcon\Config\Adapter\Yaml(APP_PATH ."/directory/routing.yml")
);
}, true);