Commit 2a1ed332 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлена передача ActiveDataProvider в таблицу файлов

parent f9d8a519
<?php
use \yii\data\ActiveDataProvider;
return [
'activeForm' => [
......@@ -24,7 +25,7 @@ return [
'type' => 'textarea',
'class' => 'form-control'
],
Yii::$app->controller->renderPartial('_files', ['model' => $this->model]),
Yii::$app->controller->renderPartial('_files', ['model' => $this->model, 'dataProvider' => new ActiveDataProvider(['query' => \common\modules\analyticsSchool\models\AnalyticsSchoolLessonFile::find()])]),
],
'buttons' => [
'submit' => ['type' => 'submit', 'value' => 'Cохранить']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment