$This->Adderror Not Highlighting The Text Box

Hi Yii members,

I have used the below code to make a textbox Required based on a scenario.

array(‘method’, ‘validateRequiredFields’),

The problem here is, it is showing me the error message as you can see in the attached screenshot. but unfortunately it isn’t highliting the text box in red color which its doing if i use the default validator. like below,

array(‘ecard,’, ‘required’),

can somebody tel me whay its happening pls?



[size="4"]Problem Resolved.[/size]

Its my fault, i was using $this->addError([color="#FF0000"]$this->ecard[/color], ‘e-card: cannot be blank.’);

where it should be,

$this->addError('ecard', 'e-card: cannot be blank.');