public function getTheme()
    {
        if ($this->theme != NULL)
            return $this->themeName;

        $theme = Cii::getConfig('theme', 'default');
        Yii::app()->setTheme(file_exists(YiiBase::getPathOfAlias('base.themes.' . $theme)) ? $theme : 'default');

        $this->themeName = $theme;
        return $theme;
    }