/**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Penjualan('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Penjualan'])) {
         $model->attributes = $_GET['Penjualan'];
     }
     $this->render('admin', array('model' => $model));
 }
Beispiel #2
0
 public function actionSuspended()
 {
     $model = new Penjualan('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Penjualan'])) {
         $model->attributes = $_GET['Penjualan'];
     }
     $model->status = '=' . Penjualan::STATUS_DRAFT;
     $model->updated_by = '=' . Yii::app()->user->id;
     $this->render('suspended', array('model' => $model));
 }