/** * Lists all PostLang models. * @return mixed */ public function actionIndex() { $dataProvider = new ActiveDataProvider(['query' => PostLang::find()]); return $this->render('index', ['dataProvider' => $dataProvider]); }