Skip to content
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

Add paginate_with_limit helper/Twig function #7

Open
makerlabs opened this issue Sep 13, 2011 · 0 comments
Open

Add paginate_with_limit helper/Twig function #7

makerlabs opened this issue Sep 13, 2011 · 0 comments
Assignees
Milestone

Comments

@makerlabs
Copy link
Owner

Twig usage example:

{{ paginate_with_limit(pager, 'route_name', [10, 20, 50, 100]) }}

PHP usage example:

<?php echo $view['pager']->paginate_with_limit($pager, 'route_name', array(10, 20, 50, 100)) ?>

This will create the default pagination with a drop down list options: 10, 20, 50, 100.

@ghost ghost assigned makerlabs Sep 13, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant