/**
  * Shows completed tickets
  */
 public function actionCompleted()
 {
     $searchModel = new TicketSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams, -1);
     $dataProvider->pagination->pageSize = self::DEFAULT_PAGE_SIZE;
     return $this->render('completed', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'action' => $this->action->id]);
 }
 /**
  * Lists all Ticket models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new TicketSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     $dataProvider->setPagination(['pageSize' => 10]);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }