Retrieving URL paths in Magento


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);
  2. // http://magesite.extension/js/
  3. Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
  4. // http://magesite.extension/index.php/
  5. Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
  6. // http://magesite.extension/media/
  7. Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
  8. // http://magesite.extension/skin/
  9. Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
  10. // http://magesite.extension/

URL: http://activecodeline.com/retrieving-url-paths-in-magento

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.