I’m using the latest version of Yii framework, and the widget is from the bootstrap extension.
code segment
<?php $this->widget(‘bootstrap.widgets.TbGridView’,array(
'id'=>'item-grid',
'dataProvider'=>$postModel->search(),
'columns'=>array(
'title',
array(
'name'=>'content',
'value'=>'strip_tags($data->content)',
),
'author_id',
array(
'name'=>'作者',
'value'=>'$data->author->nickname',
),
array(
'name'=>'类别',
'value'=>array($postModel, 'getCategories'),
),
there are Chinese characters inside, and the titles are showing like this
Title Content Author Id Ľ�者 DZ�别