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.

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, privacy policy and cookie policy

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