Hi, here is a post list, then each post has a comment list.
the _view.php of the post list like this:
<div class="item">
<div><?php echo $data->description?></div>
<?php $this->widget('zii.widgets.CListView', array(
'id' => 'comment-list'.$data->id,
'dataProvider'=>new CArrayDataProvider($data->comments, array(
'keyField'=>'id',
'pagination'=>array(
'pageSize'=>5,
),
)),
'itemView' => '/comment/_view',
'template' => '{items}{pager}',
));?>
</div>
so, the post list shows correctly, — with pager, but the comment list is not right. I’ve checked the webpage resource. I can see that:
there is no
<div class="pager">...</div>
in between
<div class="items">...</div>
and
<div class="keys">...</div>
which should be there.
Please what’s the problem? Where is the ‘‘pager’’?