Question

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?

Était-ce utile?

La solution

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);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top