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