Example - Theme Control

According to Figure below, CSS and JS files are setup in Master.php. Next, depends on the data received from $data->home, the framework will decide to either run on DEV server or on LIVE server. While Gadget Binding binds all the parameters received before inserted into gadget tag in theme.

Framework Predefined Constants shown in Figure 23:
DIR_THEME
URL_THEME
RUNON
URL_HOME
URL_ROOT
WEBVERS

Theme Control Sample Functions