Php Yii引导扩展。标页码
如何配置我的小部件,让他显示屏幕上显示的结果数?例如在标准CGridview分页中(显示了4087中的1-10个用于*)Php Yii引导扩展。标页码,php,twitter-bootstrap,yii,Php,Twitter Bootstrap,Yii,如何配置我的小部件,让他显示屏幕上显示的结果数?例如在标准CGridview分页中(显示了4087中的1-10个用于*) 您必须在模板属性中指定{summary} <?php $this->widget('common.ext.bootstrap.widgets.TbGridView', array( 'id'=>'search-by-name-grid', 'type' => 'striped', 'dataProvider'=>$data
您必须在模板
属性中指定{summary}
<?php $this->widget('common.ext.bootstrap.widgets.TbGridView', array(
'id'=>'search-by-name-grid',
'type' => 'striped',
'dataProvider'=>$dataProvider,
'template'=>'{summary}{items}{pager}',
'enablePagination' => true,
'columns'=>array(
根据文档,您可以在“summaryText”中使用以下标记
您必须在模板
属性中指定{summary}
<?php $this->widget('common.ext.bootstrap.widgets.TbGridView', array(
'id'=>'search-by-name-grid',
'type' => 'striped',
'dataProvider'=>$dataProvider,
'template'=>'{summary}{items}{pager}',
'enablePagination' => true,
'columns'=>array(
根据文档,您可以在“summaryText”中使用以下标记
<?php $this->widget('common.ext.bootstrap.widgets.TbGridView', array(
'id'=>'search-by-name-grid',
'type' => 'striped',
'dataProvider'=>$dataProvider,
'template'=>'{summary}{items}{pager}',
'enablePagination' => true,
'summaryText'=>'Displaying {start}-{end} of {count} results.'
{start}: the starting row number (1-based) currently being displayed
{end}: the ending row number (1-based) currently being displayed
{count}: the total number of rows
{page}: the page number (1-based) current being displayed, available since version 1.1.3
{pages}: the total number of pages, available since version 1.1.3