Exemple #1
0
/**
 * Adds default route to router pool
 * @param $callable
 */
function otherwise($callable)
{
    Router::getInstance()->otherwise($callable);
}
Exemple #2
0
<?php

use app\core\router\Router;
require_once "app/loader.php";
$router = Router::getInstance();
$router->run();