コード例 #1
0
ファイル: VoucherController.php プロジェクト: hanihh/vvs_v2
 public function actionAdmin()
 {
     $model = new Voucher('search');
     $model->unsetAttributes();
     if (isset($_GET['Voucher'])) {
         $model->setAttributes($_GET['Voucher']);
     }
     $this->render('admin', array('model' => $model));
 }
コード例 #2
0
 /**
  * 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));
 }
コード例 #3
0
 /**
  * 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));
 }