Search

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 $name, 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.

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details