getBaseUrl – Magento URL Path

0 votes
286 views
asked Jun 29, 2016 in Magento by Irvie Jens
Hi Folks,

How can we get the getBaseUrl – Magento URL Path?

Thanks for all your supports.

1 Answer

0 votes
answered Jul 8, 2016 by Annabell Huss
<?php
// http://example.com/
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
// http://example.com/js/
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);
// http://example.com/index.php/
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
// http://example.com/media/
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
// http://example.com/skin/
echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
?>

Related questions

0 votes
1 answer 394 views
asked Jun 29, 2016 in Magento by Mark Brown
0 votes
1 answer 384 views
asked Jun 22, 2016 in Magento by Callum Seth
0 votes
1 answer 271 views
0 votes
1 answer 1361 views
+1 vote
1 answer 1257 views
0 votes
1 answer 724 views
asked Feb 14, 2017 in Magento by Toms
...