protected function _prepareLayout() { $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('customoptions')->__('Add Options Template'), 'onclick' => "setLocation('" . $this->getUrl('*/*/new', array('store' => $this->getStoreId())) . "')", 'class' => 'add'))); $this->setChild('grid', $this->getLayout()->createBlock('mageworx/customoptions_options_grid', 'customoptions.grid')); return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('reports_grid', $this->getLayout()->createBlock('mageworx/customoptions_reports_grid', 'customoptions.reports.grid')); return parent::_prepareLayout(); }