public function error($model, $attribute, $htmlOptions = array()) { if (!isset($htmlOptions['class'])) { $htmlOptions['class'] = $this->errorMessageCssClass; } return Html::error($model, $attribute, $htmlOptions); }