Пример #1
0
 protected function _construct()
 {
     parent::_construct();
     $page = $this->getPage();
     if ($pageId = $this->getPageId()) {
         $page->setStoreId(Mage::app()->getStore()->getId())->load($pageId);
     }
 }
Пример #2
0
 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);
 }