Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Latest commit

 

History

History
27 lines (17 loc) · 839 Bytes

3-pagination.md

File metadata and controls

27 lines (17 loc) · 839 Bytes

3 - Pagination

Pagerfanta is a well-known and powerful PHP pager. Let's use it!

3.1 - WhiteOctoberPagerfantaBundle

Task: In order to use it, uncomment the line to enable the WhiteOctoberPagerfantaBundle in the AppKernel class.

3.2 - Introducing [Query|Request] Params

Task: By combining FOSRestBundle @QueryParam and the Pagerfanta, modify the allAction() to provide a paginated collection.

3.3 - Retrieving a user

Task: Create a getAction() that returns a given user.


Previous | Back to the index  | Next