Introducción a Zend Framework

 Aprendiendo Zend Framework


 Referencia de Zend Framework

  • Zend_Gdata
  • Zend_Http
  • Zend_InfoCard
  • Zend_Json
  • Zend_Layout
  • Zend_Ldap
  • Zend_Loader
  • Zend_Locale
  • Zend_Log
  • Zend_Mail
  • Zend_Markup
  • Zend_Measure
  • Zend_Memory
  • Zend_Mime
  • Zend_Navigation
  • Zend_Oauth
  • Zend_OpenId
  • Zend_Paginator
  • Zend_Pdf
  • Zend_ProgressBar
  • Zend_Queue
  • Zend_Reflection
  • Zend_Registry
  • Zend_Rest

  • Zend_Search_Lucene
  • Zend_Serializer
  • Zend_Server
  • Zend_Service
  • Zend_Session
  • Zend_Soap
  • Zend_Tag
  • Zend_Test
  • Zend_Text
  • Zend_TimeSync
  • Zend_Tool
  • Zend_Tool_Framework
  • Zend_Tool_Project
  • Zend_Translate
  • Zend_Uri
  • Zend_Validate
  • Zend_Version
  • Zend_View
  • Zend_Wildfire
  • Zend_XmlRpc
  • ZendX_Console_Process_Unix
  • ZendX_JQuery
  • Traducción al 26.9% - Actualizado el 2011-11-16 - Revisión 24249 - Versión ZF 1.11.x

    Capítulo 11. Primeros pasos con Zend_Paginator

    11.1. Introduction

    Let's say you're creating a blogging application that will be home to your vast collection of blog posts. There is a good chance that you do not want all of your blog posts to appear on one single page when someone visits your blog. An obvious solution would be to only display a small number of blog posts on the screen at a time, and allow the user to browse through the different pages, much like your favorite search engine shows you the result of your search query. Zend_Paginator is designed to help you achieve the goal of dividing collections of data in smaller, more manageable sets more easily, with more consistency, and with less duplicate code.

    Zend_Paginator uses Adapters to support various data sources and ScrollingStyles to support various methods of showing the user which pages are available. In later sections of this text we will have a closer look at what these things are and how they can help you to make the most out of Zend_Paginator.

    Before going in-depth, we will have a look at some simple examples first. After these simple examples, we will see how Zend_Paginator supports the most common use-case; paginating database results.

    This introduction has given you a quick overview of Zend_Paginator. To get started and to have a look at some code snippets, let's have a look at some simple examples.

    digg delicious meneame google twitter technorati facebook