How to set default controller on yii project ?
Answer / Akash Deep Maurya
To set the default controller on a Yii project, modify the 'routes' array in the config/web.php file. For example, to set the HomeController as the default controller, add this line: 'route => ['class' => 'yiiwebRoute', 'defaultController' => 'home'],
| Is This Answer Correct ? | 0 Yes | 0 No |
What is another controller view in yii?
How does a search() in searchmodel work in yii2?
What is difference between “render” and “renderpartial” in yii?
How to get current url in yii?
Can you list some database related functions in yii?
List out some database related functions in yii?
How to create directory structure of yii framework?
What is filter on yii framework ?
What is the component, helper and why are they used, is there other way we can do same thing, what is better?
How to set home page url in yii?
What are the core components of yii2 framework?
What is cmodel class in yii2?