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');
Possibly Related Posts:
- Database query different results
- Menu highlight in magento under admin
- magento disable a banner on certain category pages or have a banner with multiple links
- Magento, using ACL for frontend. Possible?
- Magento IE-7 Fix In Windows XP
RSS Feed