W
W
WildJust2016-12-01 14:07:53
Yii
WildJust, 2016-12-01 14:07:53

Sorting in GridView Yii2?

Good evening, there was a problem with sorting such a field in the GridView

'columns' => [
           ...
            [
                'attribute'=>'title',
                'format' => 'html',
                'label' => 'title',
                'value'=>function($model){
                    return Html::a($model->title);
                },
            ],

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2016-12-01
@kawabanga

WildJust : add field to rules, search model

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question