How To Display Dialog Box After Save In Controller

hii,




if($model->save())

                        {

                            $leavemodel->attributes=$_POST['Clientleave'];

                            $leavemodel->save();

                        }



I want to display dialog box after $leavemodel->save(); showing message like

"Record has been added successfully" with one "OK" button in dialog box.

Are you using AJAX or standard page requests?


Yii::app()->user->setFlash('success', 'Record has been added successfully');

Its a simple page.I just want to display dialog box with having "OK" button only…

Above code display only flash after saving data but i want to display dialog box with message & button…