mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-29 10:59:50 +02:00
Updated readme, added more inline documentation.
This commit is contained in:
@@ -18,10 +18,10 @@ $router = new AltoRouter();
|
||||
$router->setBasePath('/AltoRouter');
|
||||
|
||||
// mapping routes
|
||||
$router->map('GET|POST','/', 'home#index', array('name' => 'home'));
|
||||
$router->map('GET|POST','/', 'home#index', 'home');
|
||||
$router->map('GET','/users/', array('c' => 'UserController', 'a' => 'ListAction'));
|
||||
$router->map('GET','/users/[i:id]', 'users#show', array('name' => 'users_show'));
|
||||
$router->map('POST','/users/[i:id]/[delete|update:action]', 'usersController#doAction', array('name' => 'users_do'));
|
||||
$router->map('GET','/users/[i:id]', 'users#show', 'users_show');
|
||||
$router->map('POST','/users/[i:id]/[delete|update:action]', 'usersController#doAction', 'users_do');
|
||||
|
||||
|
||||
// reversed routing
|
||||
|
Reference in New Issue
Block a user