-1

Yii newbie...

How to access _view template in TbGridView, With a CListView, I can do it with:

'itemView' => '_view'

But itemView is not an option with GridView

<?php $this->widget('bootstrap.widgets.TbGridView', array(
    'type'=>'striped bordered condensed',
    'dataProvider'=>$dataProvider,

)); ?>
4

1 回答 1

0

根本不可能,您应该使用CListView, 或 extends CGridView

CGridView在表格中显示数据项不同,它CListView 允许使用视图模板来呈现每个数据项。结果,CListView可以生成更灵活的渲染结果。

于 2013-02-07T12:46:20.370 回答