]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/commands/web/class_WebLoginAreaCommand.php
Login area extended and misc things changed:
[shipsimu.git] / inc / classes / main / commands / web / class_WebLoginAreaCommand.php
index 4c8a8814f9d8ddc989b165379a505fe1e8f9e8be..eae34135c4e0c9e443716f64626a451a9e1ab9b4 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -96,7 +96,7 @@ class WebLoginAreaCommand extends BaseCommand implements Commandable {
                $appInstance = $this->getResolverInstance()->getApplicationInstance();
 
                // Prepare a template instance
-               $templateInstance = $this->prepareTemplateEngine($appInstance);
+               $templateInstance = $this->prepareTemplateInstance($appInstance);
 
                // Assign base URL
                $templateInstance->assignConfigVariable('base_url');
@@ -122,11 +122,11 @@ class WebLoginAreaCommand extends BaseCommand implements Commandable {
                $templateInstance->assignTemplateWithVariable('footer', 'footer');
 
                // Load the matching template
-               $templateInstance->loadCodeTemplate($this->actionName);
+               $templateInstance->loadCodeTemplate('action_' . $this->actionName);
 
                // Assign the template with the master template as a content ... ;)
                $templateInstance->compileTemplate();
-               $templateInstance->assignTemplateWithVariable($this->actionName, "login_content");
+               $templateInstance->assignTemplateWithVariable('action_' . $this->actionName, 'login_content');
 
                // Load main template
                $templateInstance->loadCodeTemplate('login_main');