如何将已经可用的元素添加到 Magento 的字段集中?

How to add already available element in to fieldset of Magento?

$button = Mage::app()->getLayout()->createBlock('adminhtml/widget_button');
$button->setData(array(
    'label' => $this->__('Some label'),
    'type' => 'submit',
    'class' => 'button'
));

我有上面提到的创建字段的代码element.Now我已经有以下字段集

$fieldset = $form->addFieldset('display', array(
                    'legend'       => $helper->__('Connection Settings'),
                    'class'        => 'fieldset-wide'
            ));

如何将按钮添加到字段集中。

谢谢,

这应该可以解决问题:

$button = $this->getLayout()->createBlock('adminhtml/widget_button', '', array(
    'type'  => 'button',
    'label' => $this->__('Some label'),
    'class' => 'button'
));

$fieldset->addField('my_button', 'note', array(
    'text' => $button->toHtml()
));