mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-03 15:07:43 +02:00
use short array notation in readme too
This commit is contained in:
@@ -16,7 +16,7 @@ $router->map( 'GET|POST', '/users/[i:id]/', function( $id ) {
|
|||||||
}, 'user-details');
|
}, 'user-details');
|
||||||
|
|
||||||
// echo URL to user-details page for ID 5
|
// echo URL to user-details page for ID 5
|
||||||
echo $router->generate( 'user-details', array( 'id' => 5 ) ); // Output: "/users/5"
|
echo $router->generate('user-details', ['id' => 5]); // Output: "/users/5"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
Reference in New Issue
Block a user