/**
  * Displays a particular model.
  * @param integer $id the ID of the model to be displayed
  */
 public function actionView($id)
 {
     $this->title = 'Rincian Paket';
     $packageAccount = new PackageAccount('searchPackage');
     //        $realization = new Realization('searchPackage');
     $packageAccount->unsetAttributes();
     // clear any default values
     //        $realization->unsetAttributes();  // clear any default values
     if (isset($_GET['PackageAccount'])) {
         $model->attributes = $_GET['PackageAccount'];
     }
     $this->render('view', array('model' => $this->loadModel($id), 'packageAccount' => $packageAccount));
 }
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $this->title = 'Daftar Akun Paket';
     $model = new PackageAccount('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['PackageAccount'])) {
         $model->attributes = $_GET['PackageAccount'];
     }
     $this->render('admin', array('model' => $model));
 }