Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsWeb Design & DevelopmentServer Side ScriptingPHP right
  Closed Topic Start new topic
left right
lisandro
post Apr 11 2009, 05:18 AM
Post #1


Newbie
*

Group: Members
Posts: 3
Joined: 11-April 09
Member No.: 90,934



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!!
Go to the top of the page 
 
  + Quote Post
 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 22nd May 2013 - 12:42 AM