Protected Member Functions | |
_prepareLayout () |
Definition at line 28 of file Design.php.
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 30 of file Design.php.
00031 { 00032 $this->setTemplate('system/design/index.phtml'); 00033 00034 $this->setChild('add_new_button', 00035 $this->getLayout()->createBlock('adminhtml/widget_button') 00036 ->setData(array( 00037 'label' => Mage::helper('catalog')->__('Add Design Change'), 00038 'onclick' => "setLocation('".$this->getUrl('*/*/new')."')", 00039 'class' => 'add' 00040 )) 00041 ); 00042 00043 $this->setChild('grid', $this->getLayout()->createBlock('adminhtml/system_design_grid', 'design.grid')); 00044 return parent::_prepareLayout(); 00045 }