---
title: "Default Configuration"
package: "PagerfantaBundle"
version: "3.x"
canonical_url: "https://www.babdev.com/open-source/packages/pagerfantabundle/docs/3.x/default-configuration"
package_supported: true
version_released: true
end_of_support: "2025-11-30T23:59:59.999Z"
notice:
  - "Version 3.x of PagerfantaBundle reached end of support on 2025-11-30."
---
# Default Configuration

```yaml
babdev_pagerfanta:
    # The default Pagerfanta view to use in your application
    default_view: default

    # The default Twig template to use when using the Twig Pagerfanta view
    default_twig_template: '@Pagerfanta/default.html.twig'

    exceptions_strategy:
        # The exception strategy if requesting a page outside the available pages in a paginated list; valid options are "custom" or "to_http_not_found"
        out_of_range_page: to_http_not_found

        # The exception strategy if the current page is not an allowed value in a paginated list; valid options are "custom" or "to_http_not_found"
        not_valid_current_page: to_http_not_found
```
