One code base, multiple domains/themes

I have a Yii application built. Now I want to roll out on the same exact code base different applications on different domains (same machine), but all having different themes.

What is the easiest way to accomplish this?

I have the same issue. I have one solution that

is

we can set the theme of the application anywhere.

But for safe, we need to set it from the processing of the request i.e. onBeginRequest.

We can have the code as


Yii::app()->theme

we can also set the path of the themes by using


Yii::app()->thememanager->basePath='path' or Yii::app()->thememanager->baseUrl='url of the theme'