HOW TO USE cLinkPage

when i user the class of cLinkPager,i want to pagination,but i don’t know to use it and make it render model to view ,may you give an example?

it is mainly in the controller ,how to write sql ,and render it ,lastly in views

any help appreciated!

does it still need declare variable $p=new pagination($count) ,then call cLinkPager IN the view