/** * Главная страница админки. * * @return string */ public function actionIndex() { $modelAuthor = new Author(); $dataProvider = $modelAuthor->search(Yii::$app->request->get()); return $this->render('/back/author/index', ['modelAuthor' => $modelAuthor, 'dataProvider' => $dataProvider]); }