Created
August 9, 2012 22:52
-
-
Save sinamiandashti/3308783 to your computer and use it in GitHub Desktop.
example usage zf doctrine paginator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$movies = $this->_em->createQueryBuilder(); | |
$movies->add("select", "m") | |
->add("from", "Movies m") | |
->add("where", "m.active = '1'"); | |
$pagin = new Zend_Paginator(new Paginator($movies)); | |
$pagin->setItemCountPerPage(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment