Exemplo n.º 1
0
 public function actionAdmin()
 {
     $model = new Voucher('search');
     $model->unsetAttributes();
     if (isset($_GET['Voucher'])) {
         $model->setAttributes($_GET['Voucher']);
     }
     $this->render('admin', array('model' => $model));
 }
Exemplo n.º 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));
 }
 /**
  * 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));
 }