You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ For details regarding changes please read about the [releases](https://github.co
18
18
19
19
## Requirements:
20
20
21
-
- Knp Pager component `>=2.0`.
21
+
- Knp Pager component `>=4.4`.
22
22
- KnpPaginatorBundle's master is compatible with Symfony `>=6.4` versions.
23
23
- Twig `>=3.0` version is required if you use the Twig templating engine.
24
24
@@ -66,19 +66,23 @@ public function registerBundles()
66
66
67
67
### Configuration example
68
68
69
-
You can configure default query parameter names and templates
69
+
You can configure default query parameter names and templates, and a few other options:
70
70
71
71
#### YAML:
72
72
```yaml
73
73
knp_paginator:
74
+
convert_exception: false # throw a 404 exception when an invalid page is requested
74
75
page_range: 5# number of links shown in the pagination menu (e.g: you have 10 pages, a page_range of 3, on the 5th page you'll see links to page 4, 5, 6)
76
+
remove_first_page_param: false # remove the page query parameter from the first page link
75
77
default_options:
76
78
page_name: page # page query parameter name
77
79
sort_field_name: sort # sort field query parameter name
78
80
sort_direction_name: direction # sort direction query parameter name
79
81
distinct: true # ensure distinct results, useful when ORM queries are using GROUP BY statements
80
82
filter_field_name: filterField # filter field query parameter name
81
83
filter_value_name: filterValue # filter value query parameter name
84
+
page_out_of_range: ignore # ignore, fix, or throwException when the page is out of range
85
+
default_limit: 10# default number of items per page
0 commit comments