Config Controller Definition (Frontend & Admin)

Updated . Posted . Visible to the public.

Frontend With Route:

<config>
    <frontend>
        <routers>
            <namespace_module>
                <use>standard</use>
                <args>
                    <module>Namespace_Module</module>
                    <frontName>whatever</frontName> <!-- http://dev.local/whatever/*/* -->
                </args>
            </namespace_module>
        </routers>
    </frontend>
</config>

Frontend Injected (Sales given as an example):

<config>
    <frontend>
        <routers>
            <sales>
                <args>
                    <modules>
                        <namespace_module before="Mage_Sales">Namespace_Module</namespace_module> <!-- http://dev.local/sales/*/* -->
                    </modules>
                </args>
            </sales>
        </routers>
    </frontend>
</config>

Admin:

<config>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <modules>
                        <namespace_module before="Mage_Adminhtml">Namespace_Module_Adminhtml</namespace_module> <!-- http://dev.local/admin/*/* -->
                    </modules>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>
Mike Whitby
Last edit
Mike Whitby
Keywords
config.xml
Posted by Mike Whitby to Magento (2012-02-15 16:36)