Mon code est:
dans controller :
dans View:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 $paginator = Zend_Paginator::factory($result); //$resulr est le résultat de la base $paginator->setCurrentPageNumber($this->_getParam('page',1)); $this->view->paginator = $paginator;
Je sais pas pourquoi chaque fois quand je change la page, les images dans ma page ne peuvent pas télécharger.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 foreach ($this->paginator as $records) { echo $records-> getName(); } echo $this->paginationControl($this->paginator, 'sliding', 'pagination.phtml');
Merci avance.
Partager