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