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