]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/commands/local/class_LocalHomeCommand.php
CSS classes formed to ids and command LocalHome finished
[shipsimu.git] / inc / classes / main / commands / local / class_LocalHomeCommand.php
index c670cb1de84af66c2ac21f3849b348cc5712ed0d..24ef746cf96f7a79e7d79f4d9ec94b510526cd9b 100644 (file)
@@ -78,11 +78,25 @@ class LocalHomeCommand extends BaseCommand implements Commandable {
                // Load the master template
                $masterTemplate = $appInstance->getMasterTemplate();
 
                // 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 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();
+
+               // Get the content back from the template engine and put it in the response class
+               $templateInstance->transferToResponse($responseInstance);
        }
 }
 
        }
 }