/** * Intializes the html component. * * @param boolean $reset Throws away any existing html output when true * @return void */ public function initHtml($reset = false) { if ($reset || !$this->html) { \MUtil_Html::setSnippetLoader($this->getSnippetLoader()); $this->html = new \MUtil_Html_Sequence(); // Add this variable to the view. $this->view->html = $this->html; // Load html-view.phtml from the same directory as this file. $this->view->setScriptPath(dirname(__FILE__)); $this->_helper->viewRenderer->setNoController(); $this->_helper->viewRenderer->setScriptAction('html-view'); $this->useHtmlView = true; $this->useRawOutput = false; } }