-
Notifications
You must be signed in to change notification settings - Fork 101
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
Implementing pagination? #220
Comments
There is nothing similar in Spot, but you could write a class that makes use of a Spot Query. Spot aims to be a more lightweight alternative. So, I don't think that kind of class would make it to the core. You can paginate your query yourself using |
Which seems a strange asnwer, because I have this working in my code:
|
@marcelloh Which is exactly what @nebulousGirl answered.
Question was if Spot has is a Doctrine style paginator. Which Spot does not have. |
Honestly I would not be opposed to a simplistic Pagination class that uses the built-in |
I did something like that a while ago. |
Personally I do not think this belongs in core. However thanks to being an organisation we could make something like |
I have a select query which limits the results to a count of 10.
In raw mysqli, I can have
"SELECT SQL_CALC_FOUND_ROWS * FROM table WHERE condition LIMIT 0,10"
, then perform another query to know how many total rows matched.SELECT FOUND_ROWS() as foundrows
It looks like doctrine supports something similar: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/pagination.html
Is this possible with spot2?
Thanks
The text was updated successfully, but these errors were encountered: