Код: Выделить всё
function test($model) {
return 'aaa';
}
gridview
'columns' => [
.....
'format' => 'raw',
'value' => function ($model) {}
]
или только так?
Код: Выделить всё
'value' => function ($model) {return $this->test($model);}
Код: Выделить всё
function test($model) {
return 'aaa';
}
gridview
'columns' => [
.....
'format' => 'raw',
'value' => function ($model) {}
]
Код: Выделить всё
'value' => function ($model) {return $this->test($model);}