public function __construct() { parent::__construct(); $this->_objectId = 'form_id'; $this->_blockGroup = 'example'; $this->_controller = 'adminhtml_form'; $this->_updateButton('save', 'label', Mage::helper('example')->__('Save Form')); $this->_updateButton('delete', 'label', Mage::helper('example')->__('Delete Form')); $this->_addButton('saveandcontinue', array( 'label' => Mage::helper('adminhtml')->__('Save and Continue Edit'), 'onclick' => 'saveAndContinueEdit()', 'class' => 'save', ), -100); }
protected function _prepareLayout() { $this->setChild('form', $this->getLayout()->createBlock('example/adminhtml_form_edit')); return parent::_prepareLayout(); }This example adds a child block to the form container with the block type of "example/adminhtml_form_edit". Overall, the Mage_Adminhtml_Block_Widget_Form_Container _construct class is used to create a container for a form in the Magento admin panel, allowing for easy customization of buttons and form elements.