how to display error

Hello

when i use


$model->getErrors() 

it give some validation message. i want to show that particular message after submit on bootbox.

Is there any way to show it .

please help me.

Hi Amitesh

To get the errors of specific attribute just use

$model->getErrors(‘theAttribute’)

http://www.yiiframework.com/doc/api/1.1/CModel#getErrors-detail

This return an array of specific attribute errors