я пытаюсь переопределить блок magento enterprise catalogevent, но его та же самая фатальная ошибка приводит: Фатальная ошибка: Вызов функции-члена setData () для необъекта в .. \ www \ app \ code\ core \ Mage \ Adminhtml \ Block \ Widget \ Form \ Container.php в строке 129 моего нового модуля config.xml:
<global>
<blocks>
<ss_todaysevents>
<class>Ssd_Todaysevents_Block</class>
</ss_todaysevents>
<enterprise_catalogevent>
<rewrite>
<adminhtml_event_edit_form>
Ss_TodaysEvents_Block_Adminhtml_Event_Edit_Form
</adminhtml_event_edit_form>
</rewrite>
</enterprise_catalogevent>
</blocks>
</global>
Ss_TodaysEvents_Block_Adminhtml_Event_Edit_Form класс находится в .. \ www \ app \ code \ local \Ss \ TodaysEvents \ Block \ Adminhtml \ Event \ Edit \ Form.php и имеет следующий код:
class Ss_TodaysEvents_Block_Adminhtml_Event_Edit_Form extends Enterprise_CatalogEvent_Block_Adminhtml_Event_Edit_Form
{
protected function _prepareForm()
{
parent::_prepareForm();
if (Mage::getConfig()->getModuleConfig('Ss_Brands')->is('active')) {
$fieldset = $this->getForm()->getElements()->searchById('general_fieldset');
$fieldset->addField('brand_name', 'select',
array(
'label' => Mage::helper('brands')->__('Brand'),
'title' => Mage::helper('brands')->__('Brand'),
'name' => 'brands_id',
'values' => Mage::helper('brands')->getBrandsArrayList(),
)
);
}
return $this;
}
}
Что там за работа?Спасибо