how to use html img

agfaaron

New Member
say i have the following folder structure in my zend framework 2 tutorial project in Ubuntu:\[code\]/zf2tutorial /module /Album /view /album /album myImage.png index.phtml\[/code\]in my index.phtml code i have a line such as this:\[code\]<div id='small_image'><a href='http://stackoverflow.com/feeds/posts/default' title='smallimg'><img alt='SMALLIMG' src='http://stackoverflow.com/questions/14036585/myImage.png'/></a></div>\[/code\]this does not work. if i change the myImage.png to be \[code\]http://www.someurlhere.com\[/code\] this works fine. how do i load in myImage.png instead? I tried giving it the direct url:\[code\]/home/myUsername/NetBeansProjects/zf2tutorial/module/Album/view/album/album/myImage.png\[/code\]i've also tried doing the following:\[code\]../myImage.png\[/code\]but neither of these worked. Any help would be appreciated - i know that this is a stupid question, but i'm a beginner in web development... so please bear with me here =/Also please note, it has to be a bad path (i must be doing something wrong here) because the broken image icon shows up... indicating there is a linking problem here.. the direct url is copy pasted from the properties section of the image itself..
 
Back
Top