Hi,
simple question and I hope that the simple answer. How we achieve the listed class error, if error occurred for a specific attribute?
Default:
<div class="row">
<?php echo $form->labelEx($model,'username'); ?>
<?php echo $form->textArea($model,'username'); ?>
<?php echo $form->error($model,'username'); ?>
</div>
New, add "error" to class:
<div class="row error">
<?php echo $form->labelEx($model,'username'); ?>
<?php echo $form->textArea($model,'username'); ?>
<?php echo $form->error($model,'username'); ?>
</div>
Thx