this my action , my problem when i click in link pages of paginator (for exemple 2 or 3), i have a problem with $value because my $value is posted the first time in search form from another page. (my select must be dynamic)
if any one find solutions, thanks
function xxxAction {
$value = this->_request->getPost('param');
$selection="SELECT *
FROM table
WHERE field1=$value";
$db=Zend_Db_Table::getDefaultAdapter();
$your_db_results = $db->fetchAll($selection);
$paginator = Zend_Paginator::factory($your_db_results);
$paginator->setItemCountPerPage($pageNumber);
$paginator->getItemsByPage($itemNumber);
$paginator->setCurrentPageNumber($this->_getParam('page'));
Zend_Paginator::setDefaultScrollingStyle('Sliding' );
//this are your results from db
$this->view->your_db_results = $paginator;
//this is paginator
$this->view->paginator = $paginator;
}


LinkBack URL
About LinkBacks



Reply With Quote
