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