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