Esempio n. 1
0
 /**
  * Initialize block template
  */
 protected function _construct()
 {
     $category = Mage::registry('current_category');
     if (!$category) {
         return parent::_construct();
     }
     /** @var $changesObject Firegento_FlexCms_Model_Category_Changes */
     $changesObject = Mage::getModel('firegento_flexcms/category_changes')->loadByCategory($category);
     if (!$changesObject->getId()) {
         return parent::_construct();
     }
     $this->_changes = $changesObject->getChanges();
     $this->setTemplate('firegento/flexcms/element.phtml');
 }
Esempio n. 2
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('bl/customgrid/widget/grid/form/renderer/product/fieldset/element.phtml');
 }