protected function _prepareLayout() { parent::_prepareLayout(); $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager'); $pager->setAvailableLimit(array(15 => 15, 30 => 30, 45 => 45, 'all' => 'all')); $pager->setCollection($this->getCollection()); $this->setChild('pager', $pager); $this->getCollection()->load(); return $this; }
protected function _prepareLayout() { parent::_prepareLayout(); if (Mage::helper('giftvoucher')->getInterfaceConfig('preview') && Mage::helper('giftvoucher')->getInterfaceConfig('enable')) { $media = $this->getLayout()->getBlock('product.info.media'); if ($media) { $media->setTemplate('giftvoucher/product/media.phtml'); } } }
function _prepareLayout() { parent::_prepareLayout(); }
protected function _prepareLayout() { parent::_prepareLayout(); }