/** * Lists all Ticket models. * @return mixed */ public function actionIndex() { $searchModel = new TicketSearch(); $param = Yii::$app->request->getQueryParams(); $param['TicketSearch']['type'] = Ticket::TYPE_CSR; $dataProvider = $searchModel->search($param); return $this->render('indexCsr', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }
/** * Lists all Ticket models. * @return mixed */ public function actionIndex() { $searchModel = new TicketSearch(); $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams()); return $this->render('indexTicket', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }