php - Yii Page Variation -
i have website needs have variation of pages.
for example:
website.com/variation1/page1 website.com/variation2/page1 website.com/variation3/page1
all of has same db , has same function. difference these variations differs in page template ie. header, footer, content, etc. purpose of analyzing page visits.
with that, best way this? in yii, there common layout used header/footer depends on layout. in case, header/footer should specific each page user can modify header/footer/content of specific page without affecting other pages.
so, again best approach this?
thank in advance.
edit:
i think know i'm looking here: there way override/add layout header in view file?
create 3 different layouts variation1.php, variation2.php, variation3.php, based on action(website.com/variation/pageone) or parameter(website.com/variation/page/1) change layout(in action).
Comments
Post a Comment