PHP yii\web UrlRule - 18 examples found. These are the top rated real world PHP examples of yii\web\UrlRule extracted from open source projects. You can rate examples to help us improve the quality of examples.
To define your own URL parsing and creation logic you can extend from this class
and add it to [[UrlManager::rules]] like this:
~~~
'rules' => [
['class' => 'MyUrlRule', 'pattern' => '...', 'route' => 'site/index', ...],
...
]
~~~