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