Please, tell if there is any way of displaying the pager above and under the CListView not where the widget places it automatically, but where I want it to be, corresponding to the page design?
Please, tell if there is any way of displaying the pager above and under the CListView not where the widget places it automatically, but where I want it to be, corresponding to the page design?
I haven’t done what you are asking for yet, as I just customized everything through css for the pager. There is a public property in CBaseListView of template though that might provide a means of doing what you want.
Maybe someone can chime in here that has actually done it.
There is a topic about it here.
<?php $this->widget(‘zii.widgets.CListView’, array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
'template'=>'{sorter}<br />{pager}{items}{pager}',
'enableSorting' => true,
'sortableAttributes'=>array(
'name'=>'By name',
),
)); ?>