Answer Posted / 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 |
Post New Answer View All Answers