Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.72 KB

PaginationService.md

File metadata and controls

56 lines (38 loc) · 1.72 KB

Meritoo Common Bundle

Common & useful classes, resources, extensions. Based on Symfony framework.

PaginationService

Located here: Meritoo\CommonBundle\Service\PaginationService. Serves pagination.

Parameters from configuration

Uses parameters:

  • meritoo_common.pagination.template_path (default value: '')
  • meritoo_common.pagination.per_page (default value: null)
  • meritoo_common.pagination.nearby_current_page_count (default value: null)

Depends on services

  • twig: Twig\Environment
  • router: Symfony\Component\Routing\RouterInterface

Methods

renderPagination()

Renders pagination using template passed to constructor or via setTemplatePath() method

isValidPage()

Returns information if given number of page is valid/correct, in other words if page with given number exists

Getters and setters()

Used to modify properties of the service

More

  1. Configuration
  2. Dependency Injection Extension
  3. Descriptor of application
  4. Descriptor of bundle
  5. Descriptors of bundles
  6. Services:
  7. Tests
  8. Translations
  9. Twig extensions:

‹ Back to Readme