Commit 6940aecd by Ivan Pushkin

Update runtime-routing.md: Fix url rule order

in previous example this Url::to(['post/index', 'year' => 2014, 'category' => 'php']) will not create `/index.php/posts/2014/php` because it will be handled by first find rule 'posts' => 'post/index' and url will be '/index.php/posts?year=2014&category=php'
parent d0d884c3
......@@ -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',
]
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment