我对Yii的Yii-bootstrap很新,我无法弄清楚为什么我的桌子仍然可以排序。
我几乎干净安装Yii,我按照Yiibooster网站上的说明安装助推器:)
为了启动我的应用程序,很高兴添加一些用户并查看现有用户。 但我不喜欢生成可排序的gridview。我不能把它关掉。
此代码有什么问题?
<?php
$gridDataProvider = new CActiveDataProvider('User',array());
$gridColumns = array(array('name'=>'username'),array('name'=>'email'));
$this->widget(
'bootstrap.widgets.TbExtendedGridView',
array(
'fixedHeader' => true,
'sortableRows'=>false,
'headerOffset' => 40,
// 40px is the height of the main navigation at bootstrap
'type' => 'striped condensed',
'dataProvider' => $gridDataProvider,
'responsiveTable' => true,
'template' => "{items}",
'columns' => $gridColumns,
)
);
?>