Ι am having difficulty understanding it how to use this AltoRouter.
For example here is the my implementation of the map method
$router->map( 'GET', 'http://localhost/Appointments/Frontend/blog_show.php', function() {
require __DIR__ . '/views/home.php';
});
As far as I can understand if the browser points to ‘http://localhost/Appointments/Frontend/blog_show.php’
a redirection will take place to vies/home.php.
This does not happen though in my case and I do not know if the code above indeed does that…I am not sure.
The code you see above is placed in blog_show.php