Answer the question
In order to leave comments, you need to log in
Yii2 how to write such rule for Urlmanager?
Hello, there is a rule:
'repetitory/<city>' => 'search-tutor/index',
'repetitory/<subject>' => 'search-tutor/index',
Answer the question
In order to leave comments, you need to log in
What about the meaning?
Naturally, everything will go in one, understand inside the controller what to look for there. determine on the go what has come.
How should it parse itself what kind of link it is?
After all, it even goes to one controller and method, what is the point of this action then?
'repetitory/<city>/<subject>' => 'search-tutor/index',
'repetitory/<city>' => 'search-tutor/city',
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question