[英]How to Magento getBaseUrl on Frontend from Backend?
My frontend url and backend url isn't the same. 我的前端网址和后端网址不同。
example, 例,
Frontend : http://magento.com/ 前端: http : //magento.com/
Backend : http://my.magento.com/ 后端: http : //my.magento.com/
then, 然后,
How to get the Frontend base url from Backend ? 如何从后端获取前端基本URL?
我没有带有自定义管理区域URL的商店,但我想这应该可以工作:
Mage::app()->getStore($storeId)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.