Hi,
I display an search result with the default CListView Widget:
$this->widget('zii.widgets.CListView',
array(
'dataProvider' => $dataProvider,
'itemView' => $view,
'ajaxUpdate' => false,
'template' => '{summary}{pager}<div class="cb spacer-line w99"></div>
{items}
<div class="cb"></div>{pager}',
'summaryText' => 'Found: {count} Docs',
'pager' => array(
'cssFile' => false,
'maxButtonCount' => 5,
'header' => '',
'prevPageLabel' => '«',
'nextPageLabel' => '»',
'htmlOptions' => array('data-statistik-item' => 'pagination')),
));
If there are many hits, the pagination buttons appears on top and end of the CListView. This works fine, until now.
Before that problem occurs, the html file of the view only contains a mix from HTML and PHP to output the data.
The new thing is: in some cases I need to render an widget insight that itemView.
<?php if (isset($data->url)): ?>
<span style="display:none">
<?php
$this->widget('application.widgets.videoPlayerWidget',
array('playerID'=>'vP'.$data->ID,
url'=>$data->url));
?>
</span>
<?php endif;?>
Now:
If the CListView contains an item with an widget, the pager at the footer-section is broken (only {PAGER} displays), while the pager at the top sections is working correctly.
This happens in every case, even if the widget run-block contains no PHP-code.
Any idea how to debug that problem??
Thank you, rall0r.