// Load the master template
$masterTemplate = $appInstance->getMasterTemplate();
+ // Load header template
+ $templateInstance->loadCodeTemplate("header");
+
+ // Compile and assign it with a variable
+ $templateInstance->compileTemplate();
+ $templateInstance->assignTemplateWithVariable("header", "header");
+
// Load the home template
$templateInstance->loadWebTemplate("home");
// Load the master template
$templateInstance->loadCodeTemplate($masterTemplate);
- // Compile it...
- $templateInstance->compileTemplate();
-
// Set title
$title = ucfirst($requestInstance->getRequestElement($this->getConfigInstance()->readConfig("command_parameter")));
if (empty($title)) $title = "Home";