Alto Router not working for controllers
问题 I am trying pass controller name and method to Alto Router map method but it doesnt work in index.php i have following code <?php require_once 'vendor/autoload.php'; use Route\AltoRouter; use App\Controllers\HomeController; $router = new AltoRouter(); $router->setBasePath('demo/'); $router->map('GET','/', 'HomeController#index'); $router->map('GET', '/php', function(){ echo 'It is working'; }); $match = $router->match(); // call closure or throw 404 status if( $match && is_callable( $match[