第 36 章 Zend_Paginator

目录

36.1. Introduction
36.2. Usage
36.2.1. Paginating data collections
36.2.2. Rendering pages with view scripts
36.2.2.1. Example pagination controls
36.2.2.2. Listing of properties
36.3. Configuration
36.4. Advanced usage
36.4.1. Custom data source adapters
36.4.2. Custom scrolling styles
36.4.3. Caching features

36.1. Introduction

Zend_Paginator is a flexible component for paginating collections of data and presenting that data to users.

The primary design goals of Zend_Paginator are as follows:

  • Paginate arbitrary data, not just relational databases

  • Fetch only the results that need to be displayed

  • Do not force users to adhere to only one way of displaying data or rendering pagination controls

  • Loosely couple Zend_Paginator to other Zend Framework components so that users who wish to use it independently of Zend_View, Zend_Db, etc. can do so