// Prepare a template instance
$templateInstance = $this->prepareTemplateEngine($appInstance);
+ // Assign base URL
+ $templateInstance->assignConfigVariable('base_url');
+
// Assign all the application's data with template variables
$templateInstance->assignApplicationData($appInstance);
$templateInstance->loadCodeTemplate($action);
// Assign the template with the master template as a content ... ;)
+ $templateInstance->compileTemplate();
$templateInstance->assignTemplateWithVariable($action, "login_content");
// Load main template
$templateInstance->loadCodeTemplate("login_main");
// Assign the main template with the master template as a content ... ;)
+ $templateInstance->compileTemplate();
$templateInstance->assignTemplateWithVariable("login_main", "content");
// Load the master template
// Set title
$templateInstance->assignVariable('title', $this->getLanguageInstance()->getMessage($action."_title"));
- // Assign base URL
- $templateInstance->assignConfigVariable('base_url');
-
// ... 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->debugInstance();
$templateInstance->compileVariables();
// Get the content back from the template engine and put it in the response class
$templateInstance->transferToResponse($responseInstance);
}
+
+ /**
+ * Adds extra filters to the given controller instance
+ *
+ * @param $controllerInstance A controller instance
+ * @return void
+ */
+ function addExtraFilters (Controller $controllerInstance) {
+ // Empty for now
+ }
}
// [EOF]