$router = new Router();
// map homepage
$router->map( 'GET', '/', function() {
require __DIR__ . '/views/home.php';
});
// map users details page
$router->map( 'GET|POST', '/users/[i:id]/', function( $id ) {
$user = .....
require __DIR__ . '/views/user/details.php';
});
forked from dannyvankooten/AltoRouter
-
Notifications
You must be signed in to change notification settings - Fork 0
Anddrw/RouterComponent
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Routing class for a private testing unit. WIP
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- PHP 100.0%