pagination with CListView and CSqlDataProvider problem

Hi all,

I am currently facing problems with using pagination with CListView. The first page is presented correctly, but when going to other pages, nothing gets loaded, i.e not the CListView. But looking at the page source I still see the "old" html code being generated. I am not experienced with Yii either so it may be a trivial error to fix.

I have the rewrite engine on to not show “index.php”, but that should not be a problem? The url’s that gets generated within the CListView are like this,


<li class="page"><a href="/site/index?page=2">2</a></li>

Here is my view code:





$this->widget('zii.widgets.CListView', array(

    'id' => 'result_list',

    'ajaxUpdate' => true,

    'itemView' => 'searchList',

    'dataProvider' => $dataProvider,

    'template'=>'{sorter}{pager}{summary}{items}{pager}{summary}{sorter}',

    'pager'=>array(

        'header'=>'',//text before it

        'firstPageLabel'=>'First',//overwrite firstPage lable

        'lastPageLabel'=>'Last',//overwrite lastPage lable

        'nextPageLabel'=>'Next',//overwrite nextPage lable

        'prevPageLabel'=>'Last',//overwrite prePage lable

        ),

    )

);




And here is my dataprovider code:





        $paginationProvider = new CSqlDataProvider($sql, array(

                    'params' => $parameterNameMap,

                    'totalItemCount' => $itemsCount,

                    'pagination' => array(

                    'pageSize' => 10,

                    ),

                ));




Help would be much appreciated.

Thanks,

Ole M