From 1b01aef46fa2e5cf111a5a231d46b9e3006cce95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ugo=20M=C3=A9da?= Date: Thu, 16 Oct 2014 15:46:40 +0200 Subject: [PATCH] Add missing KnpPaginator example in the usage documentation --- Resources/doc/usage.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Resources/doc/usage.md b/Resources/doc/usage.md index 37514b3..de8e1a0 100644 --- a/Resources/doc/usage.md +++ b/Resources/doc/usage.md @@ -26,7 +26,9 @@ $userPaginator = $finder->findPaginated('bob'); $countOfResults = $userPaginator->getNbResults(); // Option 3b. KnpPaginator resultset - +$paginator = $this->get('knp_paginator'); +$results = $finder->createPaginatorAdapter('bob'); +$pagination = $paginator->paginate($results, $page, 10); ``` Faceted Searching