Thank you for swift replay :)
Now i went with this:
$page = $this->_request->getParam('page') ;
$db = Zend_Registry::get ( 'db' );
$select = $db->select ()
->from ( 'banners', array ('bannerurl',
'height', 'width', 'bannersize'
) )
->where ( 'active = ?', 'y' )
->where ('programid = ?', $programid)
->where('websiteid = ?', $websiteid)
->where('bannertype = ?', $bannertype)
->order ( 'height', 'ASC' );
$paginator = Zend_Paginator::factory($select);
$paginator->setItemCountPerPage(3);
$paginator->setCurrentPageNumber($page);
$paginator->setPageRange(3);
$paginator->setDefaultScrollingStyle('Sliding');
Zend_View_Helper_PaginationControl::setDefaultViewPartial('paginator.phtml');
$this->view->paginator = $paginator;
Still cant get proper results. Links are clickable, but not lead to next
page.
In display.phtml i have:
<?php echo $this->paginator ?>
<?php foreach ( $this->paginator as $banner ) :?>
<div>
<div style="float:left; padding-left:20px"> "<?php echo $banner['bannerurl']
? "></div>
</div>
<?php endforeach; ?>
Any suggestion?
Thanks
V
--
View this message in context:
http://www.nabble.com/Question-about-zend-pagination-tp20543032p20544008.html
Sent from the Zend Framework mailing list archive at Nabble.com.