Can Yii set dedicated config to a module?

Can Yii set dedicated config to a module?Sometimes,it’s really a very important requirement.Can anybody tell me if it can be done and how do?

Yes, set it within the module config and in your module declare vars to receive the values

like




'modules'=>array(

  'myModule'=>array(

 	'var1'=>'value1',

 	'var2'=>'value2',

  ),

)



and in the module




class myModule extends CWebModule{

   public static $var1='defaultValue';

   public static $var2='defaultValue2';

}

//and use it like this


echo myModule::$var1;



Thank you!