我正在使用yii YiinfiniteScroller。有260条记录。我每页显示12条记录。最初它正确加载前12个记录。当我滚动页面时,它会加载相同的12条记录(重复)并且当我滚动时它会连续重复,每次只重复12条记录
以下是视图页面的代码
<?php
$this->widget('ext.yiinfinite-scroll.YiinfiniteScroller', array(
'contentSelector' => '#Load_addcont',
'itemSelector' => 'ul.wlist',
'loadingText' => 'Loading next 12 rows...',
'donetext' => 'Loading finish.',
'pages' => $pages,
));
?>
以下是控制器站点的代码
$pages = new CPagination($row_count);
$pages->setPageSize(12);
$pages->applyLimit($criteria);
$Wineries = Wineries::model()->findAll($criteria);
$flags = array();
Yii::log("Pagination Wineries row_count = $row_count page # = " . $pages->getCurrentPage(), 'error', 'actionSelectwineries.end');
Yii::log("Pagination Wineries GET = " . CVarDumper::dumpAsString($_GET), 'error', 'actionSelectwineries.end');
有什么问题?为什么同样的记录在重复?如果你知道,请帮助我