protected function _construct() { parent::_construct(); $page = $this->getPage(); if ($pageId = $this->getPageId()) { $page->setStoreId(Mage::app()->getStore()->getId())->load($pageId); } }
protected function _construct() { parent::_construct(); $customerId = Mage::getSingleton('customer/session')->getCustomerId(); $collection = Mage::getResourceModel('rewardpoints/transaction_collection')->addFieldToFilter('customer_id', $customerId); $collection->getSelect()->limit(5)->order('created_time DESC'); $this->setCollection($collection); }