Answer the question
In order to leave comments, you need to log in
Is there any way to write this in yii2?
Own subject
<?=GridView::widget([
...
'columns' => [
...
[
'label' => 'Контакты',
'content' => function($model) { return $this->render('clients/_contact', [ 'model' => $model ]); }
],
...
Answer the question
In order to leave comments, you need to log in
You need to make your own class that extends yii\grid\DataColumn
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question