location / {
# Redirect everything that isn't a real file to index.php
try_files $uri $uri/ /index.php$is_args$args;
}
Что-то в этом роде?
public function actionIndex()
{
$dataProvider = new ActiveDataProvider([
'query' => Studio::find()->with('city'),
'totalCount' => 10,
'pagination' => [
'pageSize' => 10,
],
]);
$studios = Studio::find()->all();
return $this->render('index', [
'studios' => $studios,
'dataProvider' => $dataProvider,
]);
}