public function actionAdmin() { $model = new Voucher('search'); $model->unsetAttributes(); if (isset($_GET['Voucher'])) { $model->setAttributes($_GET['Voucher']); } $this->render('admin', array('model' => $model)); }
/** * third sequence * Method untuk menampilkan manage data voucher */ public function actionAdmin() { $model = new Voucher('search'); $model->unsetAttributes(); if (isset($_GET['Voucher'])) { $model->attributes = $_GET['Voucher']; } $this->renderPartial('_admin', array('model' => $model, false, true)); }
/** * Manages all models. */ public function actionAdmin() { $model = new Voucher('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Voucher'])) { $model->attributes = $_GET['Voucher']; } $this->render('admin', array('model' => $model)); }