/** Jan 22, 2015 * 2. Move Report Defect */ public function actionIndex($id) { try { $model = new ProReportDefect(); $model->unsetAttributes(); // clear any default values if (isset($_GET['ProReportDefect'])) { $model->attributes = $_GET['ProReportDefect']; } $model->transaction_id = $id; $this->render('index', 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)); } }
public function actionReportDefect($transaction_id) { $this->pageTitle = "Report Defects - " . Yii::app()->params['title']; $this->layout = "application.views.layouts.layout_callslog"; try { $model = new ProReportDefect(); $model->unsetAttributes(); // clear any default values if (isset($_GET['ProReportDefect'])) { $model->attributes = $_GET['ProReportDefect']; } $model->transaction_id = $transaction_id; $this->render('report/list', 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)); } }