Esempio n. 1
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Zone('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Zone'])) {
         $model->attributes = $_GET['Zone'];
     }
     $this->render('admin', array('model' => $model));
 }