From: Roland Häder Date: Tue, 1 Sep 2009 19:57:49 +0000 (+0000) Subject: Some steps added to renderMenu(), typo fixed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d9663c4fba66df87a79f622bb47010698139381;p=core.git Some steps added to renderMenu(), typo fixed --- diff --git a/inc/classes/main/menu/class_BaseMenu.php b/inc/classes/main/menu/class_BaseMenu.php index e5c4db33..dd232514 100644 --- a/inc/classes/main/menu/class_BaseMenu.php +++ b/inc/classes/main/menu/class_BaseMenu.php @@ -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()); } }