Example 4

pict1.jpg

pict2.jpg

pict3.jpg

pict4.jpg

1 2 3 4 Next

This example uses the Paginator class. I use an array here to show that you can use this class with sources other then a database. Also I did this so you could get an idea of how this works without having to go to the trouble of setting up a database.

When you use Paginator alone you will need to use the items returned from methods to make your own links. This gives you the most flexibility. Look at the source code for this page to see how to do this. This source shows how to make a page with numbered links.

Back to Index