diff --git a/app/AppKernel.php b/app/AppKernel.php index 3789b32..c8e1f81 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -16,6 +16,7 @@ public function registerBundles() new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new AppBundle\AppBundle(), + new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(), ]; if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { diff --git a/app/Resources/views/components/list.html.twig b/app/Resources/views/components/list.html.twig index 9b7c223..8f479b3 100644 --- a/app/Resources/views/components/list.html.twig +++ b/app/Resources/views/components/list.html.twig @@ -1,14 +1,27 @@ -{% for product in products %} -