Answer the question
In order to leave comments, you need to log in
Yii 1.* Pass CgridView its own array?
CgridView has a column with id.
I need to pass data from my array to the columns
, something like
$avg = [1=>2, 2=>3];
'header' => $rows[$i]['comment'] ,
'type' => 'raw',
'value' => '$avg($data->id)',
'htmlOptions' => array('style' => 'width: 10px; text-align:center;'),
'headerHtmlOptions' => array('style' => 'text-align:center'),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question