S
S
Sergey2015-06-08 16:30:36
Yii
Sergey, 2015-06-08 16:30:36

How to make url in yii controller?

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

1 answer(s)
V
vyachin, 2015-06-08
@alekskondr

'urlManager'=> [
..............
'rules'=> [
.............
'prodaja-kvartir/<_c:\w+> /<_a:\w+>' => 'prodaja/<_c>/<_a>',
..............
],
],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question