Open vjik opened 1 week ago
After thinking about it, negative value is not valid, not only missing so I think the option isn't about it and I'd leave it as is.
I disagree.
Throw exception in Paginator
from Yii Data is OK. But GridView is other. By fact, in this case GridView is controller and uses parameters from URL. Throw PaginatorException
when user manually set incorrect page in URL is not OK. GridView behavior when positive page value not exist and non-positive page value must be equal and must be determined by ignoreMissingPage
parameter.
For example we have list with 3 pages. Behavior on example.com/posts?page=-1
and example.com/posts?page=99
URLs must be equal.
So... displaying 1st page in this case?
So... displaying 1st page in this case?
Depends on ignoreMissingPage
value:
true
— 1st page
false
— throw exception
Alright.
Should we display 1st page in this case?