/**
  * Lists all models.
  */
 public function actionIndex()
 {
     $model = new gPerson('search');
     $model->unsetAttributes();
     $criteria = new CDbCriteria();
     $criteria1 = new CDbCriteria();
     if (isset($_GET['gPerson'])) {
         $model->attributes = $_GET['gPerson'];
         $criteria1->compare('vc_psnama', $_GET['gPerson']['vc_psnama'], true, 'OR');
         //$criteria1->compare('t_domalamat',$_GET['gPerson']['t_domalamat'],true,'OR');
     }
     $criteria->mergeWith($criteria1);
     $dataProvider = new CActiveDataProvider('gPerson', array('criteria' => $criteria));
     $this->render('index', array('dataProvider' => $dataProvider, 'model' => $model));
 }