/** * Manages all models. */ public function actionIndex() { ProTransactions::deleteTransExpiredAfterDays(); try { $model = new ProTransactions('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['ProTransactions'])) { $model->attributes = $_GET['ProTransactions']; } if (isset($_GET['listing_id'])) { $model->listing_id = $_GET['listing_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)); } }
/** * Manages all models. */ public function actionIndex() { try { $this->pageTitle = "Tenancies - " . Yii::app()->params['title']; $model = new ProTransactions(); $model->unsetAttributes(); // clear any default values if (isset($_GET['ProTransactions'])) { $model->attributes = $_GET['ProTransactions']; } $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)); } }