public static function applyCurrentTheme($module = null) 
	{
		$theme = Yii::app()->theme->name;
		Yii::app()->theme = $theme;

		if($module !== null) {
			$themePath = Yii::getPathOfAlias('webroot.themes.'.$theme.'.views.layouts');
			$module->setLayoutPath($themePath);
		}
	}
public static function applyCurrentTheme($module = null) 
	{
		$theme = Yii::app()->theme->name;
		Yii::app()->theme = $theme;

		if($module !== null) {
			$themePath = Yii::getPathOfAlias('webroot.themes.'.$theme.'.views.layouts');
			$module->setLayoutPath($themePath);
		}
	}
public static function applyCurrentTheme ( $ module = null ) { $ theme = Yii :: app ( ) -> theme -> name ; Yii :: app ( ) -> theme = $ theme ; if ( $ module !== null ) { $ themePath = Yii :: getPathOfAlias ( 'webroot.themes.' . $ theme . '.views.layouts' ) ; $ module -> setLayoutPath ( $ themePath ) ; } }
Refer layout path to current applied theme.

@param object $module that currently active [optional]
@return void
Refer layout path to current applied theme .