Answer the question
In order to leave comments, you need to log in
How to properly use urlManager in yii2?
There were 2 questions:
1) Generation of url addresses
\Yii::$app->urlManager->createUrl(['/users/all/','page'=>2]);
'users/all' => 'users/default/all',
Answer the question
In order to leave comments, you need to log in
In v2, the structure of generating a list of parameters has really changed, in order to return to the old form, you need to write your own rules, something like
I guess you can still connect your own class-based rule so as not to mess around every time.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question