Let us see how to generate a Module.
Step1Ā ā To generate a module, open the module generation interface and fill in the form.

Step2Ā ā Then, click the āPreviewā button and āGenerateā.
Step3Ā ā We need to activate the module. Modify theĀ modulesĀ application component in theĀ config/web.phpĀ file.
'modules' => [ 'admin' => [ 'class' => 'app\modules\admin\Module', ], ],
Step4Ā ā To check whether our newly generated module works, type the URĀ http://localhost:8080/index.php?r=admin/default/indexĀ in the web browser.
