pager customization

I have a CListView where I only want the following to show for the pager


'pager'=>array(

  'prevPageLabel'=>'<',

  'nextPageLabel'=>'>',	

),

I only want the next and previous to have links and I want nothing else to display, not even the page numbers. Do I have to extend CLinkPager to accomplish this or is there something else I can do?

Ok I just went ahead and extended my CLinkPager so I can take advantage of making a number of changes. With that accomplished how do I call it into a certain CListView?

In protected/extensions I now have MyLinkPager.php with my customization and it is set up for import.

you can extend your pager in CListView like this:




'pager'=>array(

'class'=>'MyLinkPager',

  'prevPageLabel'=>'<',

  'nextPageLabel'=>'>',      

),



Thanks Hermans.

You can set maxButtonCount to 0 - http://www.yiiframework.com/doc/api/1.1/CLinkPager#maxButtonCount-detail

like




  ...

	'pager'=>array(

		'maxButtonCount'=>0,

	),

 ...