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

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

parent 03efb276
<?php
use \yii\data\ActiveDataProvider;
use \common\modules\analyticsSchool\models\AnalyticsSchoolLessonFile;
return [
'activeForm' => [
......@@ -25,7 +26,16 @@ return [
'type' => 'textarea',
'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' => [
'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