Question: yii2 how to create module?
Answer: Step 1 − Create a folder called modules inside your project root. ...  Step 2 − Inside the hello folder, create a file Hello. ...  Step 3 − Now, add two more directories inside the hello folder − controllers and views. ...  Step 4 − Inside the custom directory, create a file called greet. ...  Step 5 − Modify the config/web.