/** * @Author: ANH DUNG Sep 19, 2014 * @Todo: show summayry report transaction approved */ public function actionSummaryReport() { try { set_time_limit(3600); ProTransactions::ToExcelReport(); $model = new ProTransactions(); $model->date_from = date("d/m/Y"); $model->date_to = date("d/m/Y"); $data = array(); // unset($_SESSION['DATA_SUMMARY_REPORT']); if (isset($_POST['ProTransactions'])) { $model->attributes = $_POST['ProTransactions']; // $data = ProTransactions::SummaryReport($model); } $this->render('SummaryReport/SummaryReport', array('model' => $model, 'actions' => $this->listActionsCanAccess, 'data' => $data)); } catch (Exception $e) { Yii::log("Exception " . print_r($e, true), 'error'); throw new CHttpException("Exception " . print_r($e, true)); } }