Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

URL to reference images in Magento

Tags:

magento

what's the best way to reference an image from within a .phtml file in Magento. I'm trying to insert an image (sitting in the 'images' folder) into footer.phtml and

{{skin url='images/image.gif'}}

doesn't seem to work. any ideas?

like image 814
pixeltocode Avatar asked Jan 22 '23 15:01

pixeltocode


1 Answers

If you're referring to the images folder in your skin folder, then you could use Mage::getDesign()->getSkinUrl('images/image.gif').

like image 117
Mike Avatar answered Jan 24 '23 04:01

Mike