Hi! I have a problem a show a page in smarty.
This one is visualized totally in white(target, without errors), when it must appear with information.
I want to know if it is a problem of the webhosting. In my application, i have a lot of tpl's that work bell, but it not.
This one is the code:
ayuda.php, which it call to ayuda.tpl:
ayuda.php:
[i]<?php
require 'DB.php';
require '../funciones.php';
require 'Smarty.class.php';
$id=$_GET["id"];
$db=conectar();
$consulta="SELECT * FROM ayuda WHERE idAyuda='".$id."'";
$resul=$db->query($consulta);
$fila=$resul->fetchRow(DB_FETCHMODE_ORDERED);
$plantilla = new Smarty;
$plantilla->assign('titulo',$fila[1]);
$plantilla->assign('titu',$fila[1]);
$plantilla->assign('descripcion', $fila[2]);
$plantilla->assign('imagen', $fila[5]);
$plantilla->assign('atras', $fila[6]);
$plantilla->display('ayuda.tpl');
?>[/i]
ayuda.tpl:
{include file="encabezado.tpl"}
<!-- <div class="contenedorPrincipal"> -->
<div class="titulo"><h1>{$titu}</h1>
</div>
<div >
<a href="../index.html">Inicio</a> {if $atras != ''}|
<a href="../{$atras}">Atras </a>{/if}
</div>
<div class="BORDER" ></div>
<div class="divCentro">
<br />
<FIELDSET>
<LEGEND>{ $titu } </LEGEND>
<br />
{ $descripcion}
<br /> <br />
{if $imagen != ''}
<div align="center">
<img src="../docs/{$imagen}">
</div>
{/if}
</FIELDSET>
</div>
<br />
<!-- </div> -->
{include file="barraFinal.tpl"}
Thanks!!