mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 19:52:15 +00:00
Updated example for group parameters
This commit is contained in:
@@ -659,8 +659,8 @@ You can also use parameters in your groups:
|
|||||||
|
|
||||||
```php
|
```php
|
||||||
SimpleRouter::group(['prefix' => '/lang/{language}'], function ($language) {
|
SimpleRouter::group(['prefix' => '/lang/{language}'], function ($language) {
|
||||||
SimpleRouter::get('/users', function () {
|
SimpleRouter::get('/users', function ($language) {
|
||||||
// Matches The "/admin/users" URL
|
// Matches The "/lang/da/users" URL
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user