This extension could be used together with CListView YII framework component and forces it to load content on window scroll similar to twitter autoloading feature.
Licensed under the New BSD License Copyright 2011 [Kirill Kalachev aka dhampik]
<?Yii::app()->clientScript->registerCoreScript('jquery')?>
<?Yii::app()->clientScript->registerScriptFile('/js/yii.scrolling.loader.js')?>
<?Yii::app()->clientScript->registerScript('yii.scrolling.loader', "$('#sample-list').yiiScrollingLoader();", CClientScript::POS_READY)?>
<script type='text/javascript'>document.write("<style>#sample-list .pager{display: none;}</style>");</script>
<?$this->widget('zii.widgets.CListView', array(
'id' => 'sample-list',
'dataProvider' => $model->search(),
'template'=>'{pager} {items} {pager}',
'itemView' => '_view',
));?>
- v0.0.1 - January 07 2012
- Basic version