2017 © Pedro Peláez
 

symfony-bundle rudra-paginaton-bundle

Paginator bundle for Symfony2 to automate pagination and simplify sorting and other features

image

rudra/rudra-paginaton-bundle

Paginator bundle for Symfony2 to automate pagination and simplify sorting and other features

  • Sunday, August 20, 2017
  • by jagepard
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SensioLabsInsight, (*1)

RudraPaginatonBundle

Add PaginatorBundle to your application kernel, (*2)

// app/AppKernel.php, (*3)

public function registerBundles()
{
    return array(
        // ...
        new Rudra\PaginationBundle\RudraPaginationBundle(),
        // ...
    );
}

Configuration example, (*4)

You can configure default query parameter names and templates, (*5)

rudra_pagination:
    per_page: 1                      # default page range used in pagination control

In Controller, (*6)

$pagination = $this->get('rudra_pagination');
$pagination->init($id);
$pagination->setCount($this->getDoctrine()->getRepository(Blog::class)->numRows($conn));
$blogData = $this->getDoctrine()->getRepository(Blog::class)->getDataPerPage($conn, $pagination);

return $this->render('some/blog.html.twig', [
        ...
        'links' => $pagination->getLinks(),
        ...
    ]
);

The Versions

20/08 2017

dev-master

9999999-dev

Paginator bundle for Symfony2 to automate pagination and simplify sorting and other features

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle pagination paginator pager rudra