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 :
and in views there is
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 ?