Magento News

 

Magento: Get Skin Url

If you need to get the skin url, the most common place you’d need to get it is from within a template file. If that is the case for you, this is how you can do it:

echo $this->getSkinUrl('images/your-image.jpg');

But, if you don’t happen to be within a template file where $this is not available, there is another way to do it (which actually $this->getSkinUrl() does anyway):

echo Mage::getDesign()->getSkinUrl('images/your-image.jpg');


Magento: Get Skin Url

Possibly Related Posts:


 

Leave a Reply