I'm trying to override a phtml file within Magento's admin area. Specifically, the file I'm trying to override is: app/design/adminhtml/default/default/template/catalog/form/renderer/fieldset/element.phtml
In app/code/local/CompanyName/Website/etc/config.xml, I have:
<rewrite>
<catalog_form_renderer_fieldset_element>CompanyName_Website_Block_Adminhtml_Catalog_Form_Renderer_Fieldset_Element</catalog_form_renderer_fieldset_element>
</rewrite>
The overriding block PHP file I have placed into app/code/local/CompanyName/Website/Block/Adminhtml/Catalog/Form/Renderer/Fieldset/Element.php. This file contains:
<?php
class CompanyName_Website_Block_Adminhtml_Catalog_Form_Renderer_Fieldset_Element extends Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element
{
public function _construct()
{
parent::_construct();
$this->setTemplate('catalog/form/renderer/fieldset/element.phtml');
}
}
Finally, the overriding template file is at app/design/frontend/enterprise/CompanyName/template/catalog/form/renderer/fieldset/element.phtml and contains the actual template I'm overriding.
I get a white screen and in the log there's this error: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 227543041 bytes) in /var/www/html/gold/lib/Varien/Object.php on line 569
Any thoughts? Am I extending the right class? Files placed correctly? Etc. There are other <rewrite>
blocks inside the same config.xml file which work just fine so I must be making a mistake!
Thanks.