Commit ecd4f9c4 authored by Shakarim Sapa's avatar Shakarim Sapa

- Hided the filters

parent 9cb8f8b0
...@@ -35,7 +35,7 @@ use common\modules\content\models\CoCategory; ...@@ -35,7 +35,7 @@ use common\modules\content\models\CoCategory;
], ],
[ [
'attribute' => 'category_id', 'attribute' => 'category_id',
'filter' => ArrayHelper::map(CoCategory::find()->all(), 'id', 'name'), 'filter' => false, //ArrayHelper::map(CoCategory::find()->all(), 'id', 'name'),
'format' => 'text', 'format' => 'text',
'value' => function($data) { 'value' => function($data) {
return (!is_null($data->category)) ? $data->category->name : 'без категории'; return (!is_null($data->category)) ? $data->category->name : 'без категории';
...@@ -75,7 +75,7 @@ use common\modules\content\models\CoCategory; ...@@ -75,7 +75,7 @@ use common\modules\content\models\CoCategory;
], ],
[ [
'attribute' => 'category_id', 'attribute' => 'category_id',
'filter' => ArrayHelper::map(CoCategory::find()->all(), 'id', 'name'), 'filter' => false, //ArrayHelper::map(CoCategory::find()->all(), 'id', 'name'),
'format' => 'text', 'format' => 'text',
'value' => function($data) { 'value' => function($data) {
return (!is_null($data->category)) ? $data->category->name : 'без категории'; return (!is_null($data->category)) ? $data->category->name : 'без категории';
......
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