get image url in magento
Posted Date: December 23, 2010Use the following code to get the magento image url:
echo $this->getSkinUrl('images/flag.jpg');
if $this object is not available then you can use the following code to get the image path:
echo Mage::getDesign()->getSkinUrl('images/flag.jpg');

