Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Documentation - simple usage #170

@SecondeJK

Description

@SecondeJK

I've spent a bit of time learning how this bundle works slowly. It works well, but I think the readme could really benefit from the most basic usage example - for instance:

I have 3 items in an array.

I want to paginate them.

Here's how you do it in the controller using an adapter (this is covered pretty well)

Here's how you render, in Twig

  1. The current list of items to loop through
  2. The paginator
  3. The controller routing so that you print the current page.

While some rendering bits are covered, the routing and rendering of items aren't really, making it a slow process to understand how to do this, which is after all the first thing anyone is going to want to do on a paginator.

If I have time and/or you agree I can write a draft of this and PR it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions