D
D
des1roer2016-05-04 07:26:54
Yii
des1roer, 2016-05-04 07:26:54

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 question

Ask a Question

731 491 924 answers to any question