Answer the question
In order to leave comments, you need to log in
How to implement urlmanager rule?
here is the structure module(serial) controller(category)action(oneserial). made such a rule. 'serial/<id:\w+>'=>'serial/category/oneserial'
I'm trying to write a link
<?= Yii::$app->UrlManager->createUrl(['serial/category/oneserial','id'=>$car->name_serial]) ?>
http://film.lc/serial/category/oneserial?id=Перевозчик+(сериал)
serial/Перевозчик+(сериал)
Answer the question
In order to leave comments, you need to log in
<module>/<id:
\d+
>' => '<module(:serial)>/<controler(:category)>/<action(:oneserial:
\w+)>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question