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 e5c4db3..dd23251 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());
        }
 }