Loud Bitecom

Sign Up | View AH Artists | Add Artists | My Store

Total Artists: 9

see the resulting pagination controller and the list of artists, as shown in Figure 5-5.

Figure 5-5. Artist list with paginator controller

Let's look at the paginationControl() function in a bit more detail. It accepts three parameters:

• The initial parameter is a Zend_Paginator object.

• The second parameter, a string, is the type of style you want to use in the paginator controller (all possible values are shown in Table 5-7).

• The third parameter accepts a string that is the location of the view that will be used. By default, paginationControl() searches in the views/scripts/ directory for the file.

You created a completely supported pagination page using all the components involved in the pagination of data. Now let's see how to paginate database results.

Was this article helpful?

0 0

Post a comment