|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
piropeator Smarty Rookie
Joined: 31 Oct 2007 Posts: 26
|
Posted: Fri Dec 19, 2014 4:54 pm Post subject: Mostrar Imagen |
|
|
Yo defino la ruta de mis imagenes con esto:
Code: | define("APP_BASEDIR", dirname(__FILE__)); |
Code: | define('IMAGES', APP_BASEDIR. '/images/'); |
En la tabla correspondiente tengo un campo que se llama IMAGEN y contiene el valor: Imagen.jpg y la imagen se encuentra en la ruta /images/
Con esto muestro los valores en pantalla de los otros campos:
Pero cómo hago para mostrar la imagen que está en la carpeta?
He intentado con esto:
Code: | <img src="APP_BASEDIR.{$TablaVO->imagen.jpg}"> |
Code: | <img src="{$smarty.const.IMAGES}{$TablaVO->valor}" /> |
Pero no funciona. En qué me estoy equivocando??
Gracias. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|