Como puedo pasarle ese nif a la segunda pagina ..?
En mi controller tengo los siguiente.
Código PHP:
$num_per_page = 20;
$current_page = $this->_getParam("page", 1);
$this->view->paginator = Zend_Paginator::factory(array($sqlItems, $sqlCount),
'Sql',
array('Dap_Paginator_Adapter' => 'Dap/Paginator/Adapter'));
$this->view->paginator->setItemCountPerPage($num_per_page);
$this->view->paginator->setCurrentPageNumber($current_page);
$paginator=$this->view->paginator->setCurrentPageNumber($this->_getParam("page"));
Código PHP:
class Dap_Paginator_Adapter_Sql implements Zend_Paginator_Adapter_Interface {
protected $_countSelect = null;
protected $_selectItems = null;
protected $_selectCount = null;
protected $_rowCount = null;
public function __construct( array $select ) {
$this->_selectItems = $select[0];
$this->_selectCount = $select[1];
}
public function getItems($offset, $itemCountPerPage) {
$db = Zend_Registry::get('db');
return $db->fetchAll( $this->_selectItems.' LIMIT '.$offset.','.$itemCountPerPage );
}
/**
* Returns the total number of rows in the result set.
*
* @return integer
*/
public function count() {
$db = Zend_Registry::get('db');
return $db->fetchOne( $this->_selectCount );
}
}