protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $url = $this->getUrl('ampgrid/adminhtml_attribute/index', array('attributesKey' => $this->_attributesKey));
     $this->setChild('attributes_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('ampgrid')->__('Grid Columns'), 'onclick' => sprintf("pAttribute.showConfig('%s');", $url), 'class' => 'task')));
     $this->_columnGroup = Mage::helper('ampgrid')->getSelectedGroupId($this->_attributesKey);
     $this->_gridAttributes = Mage::helper('ampgrid')->prepareGridAttributesCollection($this->_attributesKey);
 }
Example #2
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->setChild('attributes_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('ampgrid')->__('Grid Attribute Columns'), 'onclick' => 'pAttribute.showConfig();', 'class' => 'task')));
     $this->_gridAttributes = Mage::helper('ampgrid')->prepareGridAttributesCollection('categories');
 }