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