Exemplo n.º 1
0
 public function actionAccountsReceivables()
 {
     try {
         $model = new FiInvoice('search');
         $model->unsetAttributes();
         // clear any default values
         $model->status = FiInvoice::UNPAID;
         if (isset($_GET['FiInvoice'])) {
             $model->attributes = $_GET['FiInvoice'];
         }
         $this->render('AccountsReceivables', array('model' => $model, 'actions' => $this->listActionsCanAccess));
     } catch (Exception $e) {
         Yii::log("Exception " . print_r($e, true), 'error');
         throw new CHttpException("Exception " . print_r($e, true));
     }
 }