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