Magento Overiding XML Case Inconsistency Continues

Had another tearing hair out moment when trying to figure out why my helper override was working fine, but my block override wasn’t working. Here is the result:

helper working, block not working:

<?xml version="1.0"?>
<config>
    <modules>
        <EC_CatalogSearch>
            <version>0.1.0</version>
        </EC_CatalogSearch>
    </modules>
    <global>
        <helpers>
            <catalogSearch>
                <rewrite>
                    <data>EC_CatalogSearch_Helper_Data</data>
                </rewrite>
            </catalogSearch>
        </helpers>
        <blocks>
            <catalogSearch>
                <rewrite>
                    <result>EC_CatalogSearch_Block_Result</result>
                </rewrite>
            </catalogSearch>
        </blocks>
    </global>
</config>

then after a load of messing about, this one does work:

helper and block both working

<?xml version="1.0"?>
<config>
    <modules>
        <EC_CatalogSearch>
            <version>0.1.0</version>
        </EC_CatalogSearch>
    </modules>
    <global>
        <helpers>
            <catalogSearch>
                <rewrite>
                    <data>EC_CatalogSearch_Helper_Data</data>
                </rewrite>
            </catalogSearch>
        </helpers>
        <blocks>
            <catalogsearch>
                <rewrite>
                    <result>EC_CatalogSearch_Block_Result</result>
                </rewrite>
            </catalogsearch>
        </blocks>
    </global>
</config>

yeah exactly :S


Tags: magentoxmloverridecase