Multi templates in Yii : Best practice

Hi everyone,

i have to make a website with multi templates that can be choosed in back-end interface.

i have the simplest way that is making the layouts as :

-layout1

-layout2

-layout3

and in views there is

-folder-of-views-1

-folder-of-views-2

-folder-of-views-3

and in controller i test if admin has choose template1 hten render one of views of folder-of-view-1 etc.

it’s not so optimal, so i think there is a better way to handle this in yii.

is there any suggestions ?

Themes?

Usually the easiest way to do this is to swap stylesheets - make all your changes there.