Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I got this alternative answer from an offline source, posting here for completeness.<br />Both Ionut-flavius-Pogacian and frostyterrier methods worked and are better solutions as defining the template gives even more control over the widget behavior rather than just defining the summaryText as in the answer below</p> <p>Tblistview is not documented in Yii-bootstrap documentation, but scanning the source it seems it is wrapper for CListview class in Yii.</p> <p>CListview extends CBaseListView which has the summaryText property. Passing Blank data to it, removes the count which is active by default.</p> <p><a href="http://www.yiiframework.com/doc/api/1.1/CBaseListView#template-detail" rel="nofollow">http://www.yiiframework.com/doc/api/1.1/CBaseListView#template-detail</a></p> <p>SummaryText has the following usable variables</p> <pre><code>{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 {start} {end} and {count} are visible by default </code></pre> <p>The code could be modified to </p> <pre><code>$this-&gt;widget('bootstrap.widgets.TbListView', array( 'dataProvider'=&gt;$dataProvider, 'itemView'=&gt;'_view', 'viewData'=&gt;array('page'=&gt;$page), 'itemsTagName'=&gt;'table', 'itemsCssClass'=&gt;'items table table-striped table-condensed', 'emptyText'=&gt;'&lt;i&gt; Sorry, there are no active items to display&lt;/i&gt;', 'summaryText'=&gt;'' )); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload