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