Posted By

nate63179 on 11/03/09


Tagged

php magento


Versions (?)

Magento: base url shortcuts


 / Published in: PHP
 

Some shortcuts for retrieving URLs

  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/

Report this snippet  

You need to login to post a comment.