Hi,
I have an html report that has paging. It list 100 records in every page.
I added an excel report to this action and need to disable the paging feature
in excel output/context.
But I am not sure if there is a better way.
Something like this or a better way? :
//get format param from request
...
if ($format != 'excel') {
$page=$this->_getParam('page', 1);
$paginator = Zend_Paginator::factory($rows);
$paginator->setItemCountPerPage(100);
$paginator->setCurrentPageNumber($page);
$this->view->applications = $paginator;
} else {
$this->view->applications = $rows;
}
Thanks
scs