I have multiple modules under my frontend. How do I set up yii2 so that the URL does not add the module name and is routed directly to the default module? Thank you
Reply content:
I have multiple modules under my frontend. How do I set up yii2 so that the URL does not add the module name and is routed directly to the default module? Thank you
Enter config/web.php and add the following content. Upload is the controller and index is the default module.
'defaultRoute'=>'upload/index',
You can try different modules using different entry files, and then different entry files introduce different web.php configuration files