Example #1
0
 /**
  * This is the default 'view' action that is invoked
  * when an action is not explicitly requested by users.
  */
 public function actionIndex()
 {
     $Query = new Query('search');
     $Query->unsetAttributes();
     // clear any default values
     //for grid search
     if (isset($_GET['Query'])) {
         $Query->attributes = $_GET['Query'];
     }
     $Query->invite = 0;
     $this->pageTitle = 'Queries | ' . Yii::app()->name;
     $this->breadcrumbs = array('Queries');
     $this->render('index', array('Query' => $Query));
 }