Answer the question
In order to leave comments, you need to log in
how to make url in yii?
there is a prodaja module,
respectively, it is displayed on the prodaja website, but I need prodaja-kvartir
What should I write in the index action or in the config?
This option doesn't work:
'urlManager'=> [
..............
'rules'=> [
.............
'prodaja-kvartir/<_c:\w+>/<_a:\w+>' => 'prodaja/<_c>/<_a>',
..............
],
],
Answer the question
In order to leave comments, you need to log in
Well, in general, this is how it works for me (yii2)
rules => array(
'news' => 'newsmodules/news/index'
'news/<_c>' => 'newsmodules/<_c>/index'
'news/<_c>/<_a>' => 'newsmodules/<_c>/<_a>'
),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question