/** * Render block HTML * * @return string */ protected function _toHtml() { if (!$this->_isPreparedToRender) { $this->_prepareToRender(); $this->_isPreparedToRender = true; } if (empty($this->_columns)) { throw new Exception('At least one column must be defined.'); } return parent::_toHtml(); }