Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Cgridview Custom Filed

$
0
0
hi.
how can i add custom columns to CGridView, i want to get data from model by ActiveDataProvider and add one or more Columns to the dataProvider Array.
i do somthing like that :
'dataProvider'=>$dataProvider,
'columns'=>array(
      'name'=>'test',
      'type'=>'raw',
      'value'=>'some value'
)


but facing error that test (in this case) is not in my table(Model)

Viewing all articles
Browse latest Browse all 18717

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>