class My_Module_Block_Adminhtml_Template extends Mage_Adminhtml_Block_Template { public function getHeader() { $header = parent::getHeader(); $header->setTemplate('my_module/header.phtml'); return $header; } }
class My_Module_Block_Adminhtml_Template extends Mage_Adminhtml_Block_Template { public function __construct() { parent::__construct(); $this->setTemplate('my_module/template.phtml'); } }This example extends the Mage_Adminhtml_Block_Template class and sets a custom template file for the block in the constructor. The package library for the Mage_Adminhtml_Block_Template class is the Magento PHP library.