Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. $produto = new Produto();
  2. $produtos = $produto->getByCategoriaId((int) $this->_getParam("categoria_id"));
  3.  
  4. $categoria = new Categoria();
  5. $this->view->categoria = $categoria->find((int) $this->_getParam("categoria_id"));
  6.  
  7. $paginator = Zend_Paginator::factory($produtos);
  8. $paginator->setDefaultItemCountPerPage(3);
  9. $paginator->setCurrentPageNumber((int) $this->_getParam("page", 1));
  10. $this->view->produtos = $paginator;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement