theme with module?

I think that theme can’t use for module ? If I want use that then I extend class CWebModule. Right ?

Or I use beforeControllerAction() to set $viewPath and $layoutPath. Right?

Plz help me. Thanks

I need the same answer, how to define a different theme for your module.

If its a theme, not a layout, here is how

class MyModule extends CWebModule{

	function init(){

 		//set the new theme for the module MyModule here