]> git.mxchange.org Git - core.git/commitdiff
Some steps added to renderMenu(), typo fixed
authorRoland Häder <roland@mxchange.org>
Tue, 1 Sep 2009 19:57:49 +0000 (19:57 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 1 Sep 2009 19:57:49 +0000 (19:57 +0000)
inc/classes/main/menu/class_BaseMenu.php

index e5c4db3352d2cdb67ea2ceb5d6a894f0ff831b32..dd23251492fdc7ec3eed3a2824c774c0fde684e0 100644 (file)
@@ -40,6 +40,13 @@ class BaseMenu extends BaseFrameworkSystem {
         * @return      void
         */
        public function renderMenu () {
+               // Initialize the menu system by preparing it's template instance
+               $templateInstance = ObjectFactory::createObjectByConfiguredName('menu_template_class', array($this->getApplicationInstance()));
+
+               // Set it for later use
+               $this->setTemplateInstance($templateInstance);
+
+               // Something is not yet ready
                $this->partialStub('Please implement this method.');
        }
 
@@ -51,7 +58,7 @@ class BaseMenu extends BaseFrameworkSystem {
         * @return      void
         */
        public function transferContentToTemplateEngine (CompileableTemplate $templateInstance) {
-               $this->partialStub('templaateInstance=' . $templateInstance->__toString());
+               $this->partialStub('templateInstance=' . $templateInstance->__toString());
        }
 }