I'm trying to add a css class to the errorSummary() in yii framwork but after add class i have not header error default
how can i add class to errorsummay without remove header message
<?php echo $form->errorSummary($model, '', '', array('class' => 'alert alert-error')); ?>
you can set attribute errorMessageCssClass of class
CActiveForm
want:and also errorSummary() has
htmlOptions
!Its a very simple one,
you can pass the class you need this way,
or
so this will allow you add the class while you have the header.
check here for more information : http://www.yiiframework.com/doc/api/1.1/CActiveForm#errorSummary-detail
since you are passing, empty string for header it causes the header issue. default value is null for
$header
.Adjust code like this.