Yii2 Url does not trigger the rule?

'search/<city-name>' //-> here the rule fails, how do I do that?</city-name></region-name>
June 14th 19 at 19:22
1 answer
June 14th 19 at 19:24
Because it's the same rule. Triggered first.
For the router that 'region' that 'city' is just the variable names, in which it will record the value.
Yes, that's right. How to solve a time like this? how much searching can't find the answer how to be?) - kennith.Rolfs commented on June 14th 19 at 19:27
Option 1: change URL for search/region/

Option 2: list all the router names or to write your own handler to router (components/WebApplication) - Jerad_Padbe commented on June 14th 19 at 19:30

Find more questions by tags PHP