sfPagerNavigationPlugin - 1.2.0

sfPagerNavigation Plugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source | Show as Markdown

sfPagerNavigation plugin

Overview

This plugin adds a new helper group, PagerNavigation, with three new helpers. They add interface controls for paginated lists, either with links to pages or with AJAX (online demo)

Installation

To install sfPagerNavigationPlugin, type:

$ symfony plugin-install http://plugins.symfony-project.com/sfPagerNavigationPlugin

Usage

Regular pager

<?php use_helper('PagerNavigation') ?>

<?php echo pager_navigation($pager, '@rule?key=param') ?>

Ajax pager

<?php use_helper('PagerNavigation') ?>

<?php echo remote_pager(array(
  'url'      => 'pager/ajaxPager',
  'update'   => 'ajax_pager',
), $pager) ?>

<noscript>
  <?php echo pager_navigation($pager, 'pager/index') ?>
</noscript>

License

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.