2017 © Pedro Peláez
 

symfony-bundle pagination-bundle

Symfony PaginationBundle

image

mqm/pagination-bundle

Symfony PaginationBundle

  • Thursday, September 20, 2012
  • by marioqm
  • Repository
  • 1 Watchers
  • 1 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

README

What is MQMPaginationBundle ?

MQMPagination Bundle is a Symfony2 bundle that lets you build pagination into your website., (*1)

This bundle is part of [MQMShoppingBox][1], a bunch of bundles to help you build e-commerce sites out of the box., (*2)

Check [ShoppingBox] for see this bundle on action., (*3)

Requirements

This bundle takes advantages of some libraries and bundles. You will need:, (*4)

  • [DoctrineExtensions][2] for sluggable and tree extensions (configuration needed described below in Installation).

Installation

Add MQMPaginationBundle to your vendors:, (*5)

You have two options, by modifying your dep file or creating a submodule

    - Option 1: Editing deps file:
        //deps  
        // ...
        [PaginationBundle]
        git=http://github.com/mqmtech/PaginationBundle.git
        target=/bundles/MQM/PaginationBundle

        $ php bin/vendors update

    - Option 2: submodule command
        $ git submodule add git://github.com/mqmtech/PaginationBundle.git vendor/bundles/MQM/PaginationBundle

Add PaginationBundle to your autoload:, (*6)

// app/autoload.php
$loader->registerNamespaces(array(
    // ...
    'MQM' => __DIR__.'/../vendor/bundles',
    // ...
));

Add PaginationBundle to your application kernel:, (*7)

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new MQM\Bundles\PaginationBundle\MQMPaginationBundle(),
    );
    // ...

    return $bundles;
}

Add MQMPaginationBundle routing rules to your application (this should be the last entry of routing.yml):, (*8)

# app/config/routing.yml
# ...
MQMPaginationBundle:
    resource: "@MQMPaginationBundle/Resources/config/routing.yml"
    prefix:   /

Add assets to your web directory:, (*9)

$ ./app/console assets:install --symlink web

Rebuild the model and update your schema:, (*10)

$ ./app/console doctrine:generate:entities
$ ./app/console doctrine:schema:update --force

Configuration

# app/config/config.yml
mqm_pagination:
    limit_per_page: 6

Security

Templates

Extra

How to use

Other

The Versions

20/09 2012

dev-master

9999999-dev http://mqmtech.blogspot.com

Symfony PaginationBundle

  Sources   Download

MIT

The Requires

 

webtools pagination