S
S
Sergey Beloventsev2016-08-10 15:56:04
Yii
Sergey Beloventsev, 2016-08-10 15:56:04

What does not work correctly in the rule when forming a link?

there are two link is formed like this

$app->urlManager->createUrl(['/actours/actour','slug'=>$actours->slug_name])

here is the rule that routes the link
'actours/<slug>'=>'actours/actour',
, it turns out such a link
sites.lc/actours/Luk-Uilson
, but such a link is also routed,
sites.lc/actours/actour?id=1549
how do I write the rule correctly, so the bottom link did not fall under the rule

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
metallix, 2016-08-10
@metallix

Check it out here , it might help you too :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question