Get formatted images url and avoid theme dependences.
return http://www.example.com/skin/frontend/{interface}/{theme}/images/my-image.jpg
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
Mage::getBaseUrl();
$this->getSkinUrl('images/imagename.gif', array('_secure'=>true));
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
$this->getSkinUrl('images/imagename.jpg');
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);
Mage::helper('core/url')->getCurrentUrl();
images path | details |
---|---|
example: 'images/my-images.jpg' | path for image |