I have a web application that has many faces, and so far I have implemented this by creating themes. A theme is a collection of html, css and images that will be used with a common back end.
They are done like this:
code/
themes/theme1
themes/theme2
And each instance of the web application has a configuration file that indicates which theme should be used. Example:
theme="theme1"
Now the new business rules are asking me to make changes to certain topics that cannot be achieved by simply changing the html / css / images and requiring a change to the backend. In some cases, these changes need to be applied to a topic group.
, , . , - .
, :
code/common
code/theme1
code/theme2
themes/theme1
themes/theme2
, include_path , code/theme1, code/common.
, , LogoutPage class theme2, code/common code/theme2 .
, . , .
, ? Theme1LogoutPage extends LogoutPage. , , - (, ) LogoutPage. , , ?
, , , , .
, , , , .
. - , LAMP.
magiclamp