SHARE
TWEET

Zend_Db_Table Relationships and Zend_Paginator

a guest Feb 26th, 2012 31 Never
  1. $select = $row->select();
  2. $select->order('item_name');    
  3. $row->findDependentRowset($table, null, $select)
  4.        
  5. $select = $row->select()->limit($itemCountPerPage,$offset);
  6. $select->order('item_name');    
  7. $row->findDependentRowset($table, null, $select);
  8.        
  9. public function getItems($offset, $itemCountPerPage)
  10. {
  11.    $this->_select->limit($itemCountPerPage, $offset);
  12.    return $this->_select;
  13. }
RAW Paste Data
Top