// Set it for later use
$this->setTemplateInstance($templateInstance);
- // Something is not yet ready
- $this->partialStub('Please implement this method.');
+ // Load the base (XML) template for generating menus
+ $this->getTemplateInstance()->loadMenuTemplate('base_menu');
+
+ // Get the prepared content
+ $menuContent = $this->getTemplateInstance()->getRawTemplateData();
+
+ // Render it here
+ $this->getTemplateInstance()->renderXmlContent($menuContent);
+ die('!OK');
}
/**
* Transfers the rendered menu to a given templatex engine by assigning
* the rendered content with a template variable.
*
- * @2param $templateInstance An instance of a CompileableTemplate class
+ * @param $templateInstance An instance of a CompileableTemplate class
* @return void
*/
public function transferContentToTemplateEngine (CompileableTemplate $templateInstance) {