Magento Certified Developer GuideWhich ways exist in Magento to add router classes
Manish Prakash Staff asked 5 years ago

1. We can add router class via config xml file
e.g

<web>
            <routers>
                <admin>
                    <area>admin</area>
                    <class>Mage_Core_Controller_Varien_Router_Admin</class>
                </admin>
                <standard>
                    <area>frontend</area>
                    <class>Mage_Core_Controller_Varien_Router_Standard</class>
                </standard>
            </routers>
</web>

2. We can add routers through the event ‘controller_front_init_routers’