I use the URL manager in Yii2 to create nice urls, which works, as long as there are no parameters on the url.
I set up the following config:
urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
],
],
Using
Url::to(array('crtl/action', 'paramx' => 'computer:net', 'paramy' => 'abc')) results in the following url:
http://localhost/crtl/action?paramx=computer:net¶my=abc
But what I need is the following:
http://localhost/crtl/action/paramx/computer:net/paramy/abc
How can I prettify the url paramters to?