In google no more information about modules enabled and disabled so I am troubling here.
I have build some modules in yii2 like users, payments, subscriptions, news etc. I want to disabled subscriptions modules. Is it possible?
Edit: Enable and Disable function should allow for end user.
I would place the following code in the module class(es) that support being disabled/enabled.
So for every module (
users,subscriptions,news, etc) you have module class somewhere that extends\yii\base\Module. Place code like this in every module class and check the appropriate setting.