7

Is there any way to get the admin path for a given installation? Most of the time is /admin, but I want to know if there is a certain way to get the path of the admin programmatically.

2 Answers 2

6

You should use,

Mage::helper("adminhtml")->getUrl("adminhtml")
8

To get the Adminhtml Frontname in Magento local.xml try

Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');

From etc/local.xml

<admin>
    <routers>
        <adminhtml>
            <args>
                <frontName><![CDATA[admin]]></frontName>
            </args>

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.