Commit 9f6329b5 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлен фильтр данных из таблицы с файлами

parent 03efb276
<?php <?php
use \yii\data\ActiveDataProvider; use \yii\data\ActiveDataProvider;
use \common\modules\analyticsSchool\models\AnalyticsSchoolLessonFile;
return [ return [
'activeForm' => [ 'activeForm' => [
...@@ -25,7 +26,16 @@ return [ ...@@ -25,7 +26,16 @@ return [
'type' => 'textarea', 'type' => 'textarea',
'class' => 'form-control' 'class' => 'form-control'
], ],
Yii::$app->controller->renderPartial('_files', ['model' => $this->model, 'dataProvider' => new ActiveDataProvider(['query' => \common\modules\analyticsSchool\models\AnalyticsSchoolLessonFile::find()])]), Yii::$app->controller->renderPartial(
'_files',
[
'model' => $this->model,
'dataProvider' => new ActiveDataProvider([
'query' => AnalyticsSchoolLessonFile::find()->where([
'title' => '1'
])
])
]),
], ],
'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