Search code examples
phpyiiyii-components

yii: Append instead of replace items in CListView when using pager


I'm using CListView widget to render by items.

But now when I change the page using pagers provided by CListView, it change the data in the _view.

I'd like to know if I can obtain the old data (says, page 1) and append the new data (page 2) to it so that I can see both data from page 1 and page 2.

Thanks!


Solution

  • There is an extension for yii which provides an endless scrolling pagination: http://www.yiiframework.com/extension/yiinfinite-scroll/