public function renderErrors() { if ($this->filterModel instanceof Model && $this->filterModel->hasErrors()) { return Html::errorSummary($this->filterModel, $this->filterErrorSummaryOptions); } else { return ''; } }