How to create module without using GII?


I am new in Yii 2 advanced, I need to create many modules without using GII. Is it possible?Looking forwarded your help.

You can read about creating modules here : Module guide

I would place a "modules" folder in frontend, backend or common depending on your use case. The modules are activated in the application configuration file.


I have created a module called ApiManager. and created a AtestController in /var/www/html/website/backend/controllers.

I used " $response = \Yii::$app->getModule(‘ApiManager’); " for access module in that controller, Is it possible to acces functions of this module, now I am not able to call function. like $response->myfunction();