dev-master
9999999-dev http://mqmtech.blogspot.comSymfony PaginationBundle
MIT
The Requires
webtools pagination
 Wallogit.com
                    
                    2017 © Pedro Peláez
                         Wallogit.com
                    
                    2017 © Pedro Peláez
                    
                    
                    
                    
                
                
            
Symfony PaginationBundle
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)
This bundle takes advantages of some libraries and bundles. You will need:, (*4)
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
# app/config/config.yml
mqm_pagination:
    limit_per_page: 6
Symfony PaginationBundle
MIT
webtools pagination