Пример #1
0
 public function actionCallsLog($transaction_id)
 {
     $this->pageTitle = "CallsLog - " . Yii::app()->params['title'];
     $this->layout = "application.views.layouts.layout_callslog";
     try {
         $model = new ProCallLog();
         $model->unsetAttributes();
         // clear any default values
         if (isset($_GET['ProCallLog'])) {
             $model->attributes = $_GET['ProCallLog'];
         }
         $model->transaction_id = $transaction_id;
         $this->render('callslog/list', array('model' => $model));
     } catch (Exception $ex) {
         Yii::log("Exception " . print_r($e, true), 'error');
         throw new CHttpException(400, $e->getMessage());
     }
 }
Пример #2
0
 /** Jan 22, 2015 
  * 1. Move Calls Log
  */
 public function actionIndex($id)
 {
     try {
         $model = new ProCallLog();
         $model->unsetAttributes();
         // clear any default values
         if (isset($_GET['ProCallLog'])) {
             $model->attributes = $_GET['ProCallLog'];
         }
         $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));
     }
 }