PorpaginasBundle
Introduction
PorpaginasBundle is wrapper for porpaginas library., (*1)
, (*2)
Installation
Using Composer (recommended)
To install PorpaginasBundle with Composer just add the following to your composer.json file:, (*3)
// composer.json
{
// ...
require: {
// ...
"fightmaster/porpaginas-bundle": "dev-master"
}
}
Then, you can install the new dependencies by running Composerâs update command from the directory
where your composer.json file is located:, (*4)
$ php composer.phar update fightmaster/porpaginas-bundle
Composer will automatically download all required files, and install them for you.
All that is left to do is to update your AppKernel.php file, and register the new bundle:, (*5)
<?php
// in AppKernel::registerBundles()
$bundles = array(
// ...
new Porpaginas\PorpaginasBundle\PorpaginasBundle(),
// ...
);
Configuration
By default, you need to specify only what you use paginator (knp_paginator
). Library supports only KnpPaginator., (*6)
Below you find a reference of all configuration options with their default values:, (*7)
# config.yml
porpaginas:
paginator: knp_paginator
#paginator: pagerfanta