__init.php 190 Bytes
<?php
$dis = Yaf_Dispatcher::getInstance();
$routes = new Yaf_Config_Ini(__DIR__ . "/configs/routes.ini");
if (!empty($routes->routes)) {
    $dis->getRouter()->addConfig($routes->routes);
}