New issue
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
$PAGE_NUM variable is always the same. #3382
Comments
Not a bug. You're using the |
The whole blade file. Changing the script's location just after the opening tag does not help. By the way, I am using v.2.0.0.
|
Because you want to re-calculate the position on each page a page script would be more appropriate. I'd recommend not using embedded script if you can. Rewriting what you currently have, the following can be used on the back end:
But if you need to use embedded script, here's the equivalent for that implementation:
|
I tried to calculate the X distance for my pagination based on the $PAGE_NUM and $PAGE_COUNT variables. Apparently, for every page, $PAGE_NUM will return the last page number. Basically, $PAGE_NUM is always equal to $PAGE_COUNT. Looks like a bug to me.
Calculations snippet:
You can use this snippet to see that the $PAGE_NUM variable is always the same.
The text was updated successfully, but these errors were encountered: