setTemplate('referafriend/points.phtml'); $points = Mage::getResourceModel('rewardpoints/stats_collection') ->addClientFilter(Mage::getSingleton('customer/session')->getCustomer()->getId()); $this->setPoints($points); } public function _prepareLayout() { parent::_prepareLayout(); $pager = $this->getLayout()->createBlock('page/html_pager', 'rewardpoints.points') ->setCollection($this->getPoints()); $this->setChild('pager', $pager); $this->getPoints()->load(); return $this; } public function getPagerHtml() { return $this->getChildHtml('pager'); } }