I'm creating a custom theme. Under my theme's folder, there is an images
folder where I've put some pictures. I want to use these images in my various template (.tpl.php
) files using HTML <img>
tag... but the problem is how do i get correct path for these images (the src
attribute)?
I've searched for a while but didn't get any solutions. Please help.
EDIT: I'm using nice urls (http://mydrupalsite.com/a/b/c/d) - type URLs. So, if the image src
begins with /
(or any relative path) it would break.