A
A
Anton2017-02-07 13:02:29
Yii
Anton, 2017-02-07 13:02:29

How to redirect the main page?

Hello. I need to make the main page at /catalog/shares, catalog is a module, it has a default controller, it has an index method, and the index method takes the shares parameter, how to do this?
Tried this and that but it doesn't work '/' => 'catalog/default/index/shares''/' => 'catalog/shares'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-02-08
Reytarovsky @Antonchik

main and takes a parameter, somehow incompatible, but apparently like this:
and if the link looks like
mysite.com?shares=chtoto
then like this
'/' => 'catalog/default/index'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question