×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: bejoy balan
Added: Oct 1, 2014 12:43 PM
Views: 17
http://php.quicoto.com/getbaseurl-magento-url-path/
  1. http://example.com/
  2.  
  3. <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>
  4. http://example.com/js/
  5.  
  6. <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>
  7. http://example.com/index.php/
  8.  
  9. <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK); ?>
  10. http://example.com/media/
  11.  
  12. <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); ?>
  13. http://example.com/skin/
  14.  
  15. <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>