/** * Lists all ContentType models. * @return mixed */ public function actionIndex() { $model = new ContentTypeSearch(); $dataProvider = $model->searchReport(Yii::$app->request->post()); return $this->render('index', ['dataProvider' => $dataProvider, 'model' => $model]); }