]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/commands/web/class_WebLoginAreaCommand.php
Simple exception handler and error handler added, profile update added with stubs
[shipsimu.git] / inc / classes / main / commands / web / class_WebLoginAreaCommand.php
index ac26849836c375393d5161fe223512a607b89242..146623d24ecae9e0aa4fef6fe792f3a86d597b56 100644 (file)
@@ -104,6 +104,9 @@ class WebLoginAreaCommand extends BaseCommand implements Commandable {
                // 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);
 
@@ -128,12 +131,14 @@ class WebLoginAreaCommand extends BaseCommand implements Commandable {
                $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
@@ -142,17 +147,25 @@ class WebLoginAreaCommand extends BaseCommand implements Commandable {
                // 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]