php - YiinfiniteScroller pagination repeated rows -
i using yii yiinfinitescroller. there 260 records. have displayed 12 records per page. loads first 12 records correctly. when scroll page, loads same 12 records (duplicate) , repeats continuously when scrolling 12 records repeated every time
here code view page
<?php $this->widget('ext.yiinfinite-scroll.yiinfinitescroller', array( 'contentselector' => '#load_addcont', 'itemselector' => 'ul.wlist', 'loadingtext' => 'loading next 12 rows...', 'donetext' => 'loading finish.', 'pages' => $pages, )); ?>
here code controller site
$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 = " . cvardumper::dumpasstring($_get), 'error', 'actionselectwineries.end');
what problem? why same records repeating? pls me if know
Comments
Post a Comment