/** * Manages all models. */ public function actionIndex() { $model = new Pest('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Pest'])) { $model->attributes = $_GET['Pest']; } $this->render('index', array('model' => $model)); }