// Load the master template
$masterTemplate = $appInstance->getMasterTemplate();
+ // Load the home template
+ $templateInstance->loadWebTemplate("home");
+
+ // Assign the home template with the master template as a content ... ;)
+ $templateInstance->assignTemplateWithVariable("home", "content");
+
// Load the master template
$templateInstance->loadCodeTemplate($masterTemplate);
- // Load the home template
- $templateInstance->loadWebTemplate("home");
+ // Compile it...
+ $templateInstance->compileTemplate();
+
+ // ... and all variables. This should be merged together in a pattern
+ // to make things easier. A cache mechanism should be added between
+ // these two calls to cache compiled templates.
+ $templateInstance->compileVariables();
+ die("<pre>".print_r($templateInstance, true)."</pre>");
}
}