public function actionAdmin() { $model = new UserPlan('search'); $model->unsetAttributes(); if (isset($_GET['UserPlan'])) { $model->setAttributes($_GET['UserPlan']); } $this->render('admin', array('model' => $model)); }