module config


I am new here, just a simple question when I was checking a Yii application sample, in the main.config in modules sometimes the module has class attribute and some modules don’t have this class attribute.

I wonder when its required to define the class and when not required?

thank you