/** * Render output using parent methods * * @return string */ protected function _real_toHtml() { if (!$this->_directCall) { switch ($this->getNameInLayout()) { case 'global_messages': $this->_directCall = 'getHtml'; break; case 'messages': default: $this->_directCall = 'getGroupedHtml'; break; } } switch ($this->_directCall) { case 'getHtml': $html = parent::getHtml($this->_singleRenderType); $this->_singleRenderType = self::NO_SINGLE_RENDER_TYPE; break; case 'getGroupedHtml': default: $html = parent::getGroupedHtml(); break; } return $html; }