mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-06 08:27:39 +02:00
Fix incorrect example
This commit is contained in:
@@ -125,7 +125,7 @@ Where `target` and `name` contain the values passed to `map` and `params` is an
|
|||||||
```php
|
```php
|
||||||
$router = new AltoRouter();
|
$router = new AltoRouter();
|
||||||
$router->map('GET', '/user/[i:id]', 'user_controller#show_profile', 'user_profile');
|
$router->map('GET', '/user/[i:id]', 'user_controller#show_profile', 'user_profile');
|
||||||
$result = $router->match('/users/group/list/123/');
|
$result = $router->match('/user/123');
|
||||||
|
|
||||||
$result == array(
|
$result == array(
|
||||||
'target' => 'user_controller#show_profile',
|
'target' => 'user_controller#show_profile',
|
||||||
|
Reference in New Issue
Block a user