How to give image path(I am a beginner)
This is an open discussion with 2 replies, filed under General.
Search
You say you use:
<img src="{$workspace}/uploads/$name"/>
Try adding the curly braces around $name
too:
<img src="{$workspace}/uploads/{$name}"/>
If that doesn't work, what should the correct URL to the image be?
Thanks nickdunn, i done with curly braces,then its working fine.
Create an account or sign in to comment.
Hi all, i want to display images dynamically in my site, image names are stored in data base and images are in uploads folder, for these i have given , but its not working. Here $name is the variable stores the name of the image from data base. Is this is correct way of displaying image.I am a beginner in symphony cms.