mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Merge pull request #7025 from MetalGuardian/patch-1
Update runtime-routing.md: Fix url rule order
This commit is contained in:
@ -340,9 +340,9 @@ Let's use some examples to illustrate how named parameters work. Assume we have
|
||||
|
||||
```php
|
||||
[
|
||||
'posts/<year:\d{4}>/<category>' => 'post/index',
|
||||
'posts' => 'post/index',
|
||||
'post/<id:\d+>' => 'post/view',
|
||||
'posts/<year:\d{4}>/<category>' => 'post/index',
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user