Answer the question
In order to leave comments, you need to log in
UrlManager in Yii2 need help!?
index.php
<a href="<?= \yii\helpers\Url::to(['price/view', 'id' => $price->id, 'slug' => $price->slug]) ?>
'price/<id:\d+><slug:\wd->' => 'price/view',
Answer the question
In order to leave comments, you need to log in
Yes, you perfectly felt the essence of the error:
You need to do this:
Should work, check.
And to understand these d+ - refer to Google: PHP PREG-templates. Something like:
www.skillz.ru/dev/php/article-Regulyarnye_vyrazhen...
But it's better to even look for PHP tutorials
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question