/** * Create form block * * @return Mage_Core_Block_Abstract */ protected function _prepareLayout() { if ($this->_blockGroup && $this->_controller && $this->_mode && !$this->_layout->getChildName($this->_nameInLayout, 'form')) { $this->addChild('form', $this->_buildFormClassName()); } return parent::_prepareLayout(); }
protected function _prepareLayout() { if (!$this->getLayout()->getChildName($this->getNameInLayout(), 'grid')) { $this->setChild('grid', $this->getLayout()->createBlock($this->_blockGroup . '_Block_Role_Grid', $this->_controller . '.grid')->setSaveParametersInSession(true)); } return Mage_Backend_Block_Widget_Container::_prepareLayout(); }
protected function _prepareLayout() { $blockName = $this->_blockGroup . '_Block_' . str_replace(' ', '_', ucwords(str_replace('_', ' ', $this->_controller))) . '_View_Plane'; $this->setChild('plane', $this->getLayout()->createBlock($blockName)); return parent::_prepareLayout(); }
public function getHeaderCssClass() { return 'icon-head ' . parent::getHeaderCssClass(); }
/** * Add elements in layout */ protected function _prepareLayout() { $this->addButton('back_button', array('label' => $this->_helperFactory->get('Mage_Catalog_Helper_Data')->__('Back'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*') . '\')', 'class' => 'back')); parent::_prepareLayout(); }