We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protected function updateNumPages(){ $this->numPages = ($this->itemsPerPage == 0 ? 0 : (int) floor($this->totalItems/$this->itemsPerPage)); }
The text was updated successfully, but these errors were encountered:
If you round down wouldn't you need up with orphan items?
Example: lets say we have 25 items with 10 items per page.
if we use floor we would round 2.5 down to 2 pages, leaving 5 items orphaned.
if we use ceil we would round 2.5 up to 3 pages, making sure that the last 5 items are not orphaned.
Sorry, something went wrong.
No branches or pull requests
protected function updateNumPages(){
$this->numPages = ($this->itemsPerPage == 0 ? 0 : (int) floor($this->totalItems/$this->itemsPerPage));
}
The text was updated successfully, but these errors were encountered: