Skip to content

Instantly share code, notes, and snippets.

@sinamiandashti
Created August 9, 2012 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinamiandashti/3308783 to your computer and use it in GitHub Desktop.
Save sinamiandashti/3308783 to your computer and use it in GitHub Desktop.
example usage zf doctrine paginator
$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