parent::__construct(__CLASS__);
// Set special description
- $this->setObjectDescription("Command for the "home" page");
+ $this->setObjectDescription("Command for the "login area" page");
// Create unique ID number
$this->generateUniqueId();
$templateInstance->loadCodeTemplate($action);
// Assign the template with the master template as a content ... ;)
- $templateInstance->assignTemplateWithVariable($action, "content");
+ $templateInstance->assignTemplateWithVariable($action, "login_content");
+
+ // Load main template
+ $templateInstance->loadCodeTemplate("login_main");
+
+ // Assign the main template with the master template as a content ... ;)
+ $templateInstance->assignTemplateWithVariable("login_main", "content");
// Load the master template
$templateInstance->loadCodeTemplate($masterTemplate);
// Set title
- $templateInstance->assignVariable('title', $this->getLanguageInstance()->getMessage("login_{$action}_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