public function end($title = null, $options = []) { $this->_lastPanelClosed = true; $res = ''; $res .= $this->_cleanCurrent(); if ($title !== null) { $res .= $this->footer($title, $options); } $res .= '</div>'; return $res; }