S
S
Stepan2015-01-27 19:20:03
Yii
Stepan, 2015-01-27 19:20:03

(YII2) How to make the home page point to another controller's index?

When I go to the site web/index.php
It draws the action of the site controller
How can I change it to another one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
KorsaR-ZN, 2015-01-27
@xoma2

Write an option in the config

...,
'defaultRoute' => 'controller/action'
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question