/** * Lists all Humour models. * @return mixed */ public function actionAdmin() { $searchModel = new Humour(); $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams()); return $this->render('admin', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }