Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract::_getAdminFrontname PHP 메소드

_getAdminFrontname() 보호된 메소드

This is just the plain string, not in URL format. ex: http://example.com/magento/admin -> admin
protected _getAdminFrontname ( ) : string
리턴 string
    protected function _getAdminFrontname()
    {
        if (Mage::getStoreConfig('admin/url/use_custom_path')) {
            if (Mage::getStoreConfig('web/url/use_store')) {
                return Mage::getModel('core/store')->load(0)->getCode() . "/" . Mage::getStoreConfig('admin/url/custom_path');
            } else {
                return Mage::getStoreConfig('admin/url/custom_path');
            }
        } else {
            return (string) Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
        }
    }