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

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

parent f9d8a519
<?php <?php
use \yii\data\ActiveDataProvider;
return [ return [
'activeForm' => [ 'activeForm' => [
...@@ -24,7 +25,7 @@ return [ ...@@ -24,7 +25,7 @@ return [
'type' => 'textarea', 'type' => 'textarea',
'class' => 'form-control' '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' => [ 'buttons' => [
'submit' => ['type' => 'submit', 'value' => 'Cохранить'] '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