Skip to content

Instantly share code, notes, and snippets.

@insaurabh
Created April 20, 2017 07:14
Show Gist options
  • Save insaurabh/d70bcd1ff00ee31f676553e2e51ccb99 to your computer and use it in GitHub Desktop.
Save insaurabh/d70bcd1ff00ee31f676553e2e51ccb99 to your computer and use it in GitHub Desktop.
Under every function there is an example of the output value:
Output : http://example.com/
<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>
Output : http://example.com/js/
<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>
Output : http://example.com/index.php/
<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK); ?>
Output : http://example.com/media/
<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); ?>
Output : http://example.com/skin/
<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment