dtjo51649 2012-11-26 07:09
浏览 62
已采纳

如何从后端获得Magento getBaseUrl前端?

My frontend url and backend url isn't the same.

example,

Frontend : http://magento.com/

Backend : http://my.magento.com/

then,

How to get the Frontend base url from Backend?

  • 写回答

1条回答 默认 最新

  • douweida2669 2012-11-26 07:17
    关注

    I don't have a store with customized admin area URL but I guess this shall work:

    Mage::app()->getStore($storeId)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?