public function actionAdminAgent() { $model = new IguVoucherManagement('voucherByAgent'); $model->unsetAttributes(); if (isset($_GET['IguVoucherManagement'])) { $model->setAttributes($_GET['IguVoucherManagement']); } $this->render('adminAgent', array('model' => $model)); }