0

I am new to magento, i want know in config.xml file there are two routers are there. one is for frontend router and other is admin router,please explain where the frontend routers will reflects. for admin it will reflects on admin url. I am not getting where fronted routers is reflecting.

Here is the config.xml file

<frontend>
        <routers>
            <surgery>
                <use>standard</use>
                <args>
                    <module>Test_Surgery</module>
                    <frontName>surgery</frontName>
                </args>
            </surgery>
        </routers>
        <layout>
            <updates>
                <surgery>
                    <file>surgery.xml</file>
                </surgery>
            </updates>
        </layout>
    </frontend>
    <admin>
        <routers>
            <surgery>
                <use>admin</use>
                <args>
                    <module>Test_Surgery</module>
                    <frontName>surgery</frontName>
                </args>
            </surgery>
        </routers>
    </admin>

1 Answer 1

0

A route will turn a URL into an Action Controller and a method. Unlike other convention based PHP MVC systems, with Magento you need to explicitly define a route in the global Magento config.

For more details, Can you please read.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.