Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/04/2012, 13:12
rimander
 
Fecha de Ingreso: febrero-2011
Mensajes: 111
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: Duda sobre smarty

Si me puedes transformar esto a smarty :S
Código PHP:
if(isset($_GET['wineandplus']) && !empty($_GET['wineandplus']))
{
if(
file_exists(realpath('template/')."/".$_GET['wineandplus'].".tpl")) 
{
$archivos "paginas/".$_GET['wineandplus'].".tpl";
}
else {
$archivos "paginas/".'inicio.tpl';
}
} else 
{
$archivos "paginas/".'inicio.tpl';


Última edición por rimander; 05/04/2012 a las 13:33