Tema: Templates
Ver Mensaje Individual
  #16 (permalink)  
Antiguo 18/01/2003, 09:55
Avatar de MSDark
MSDark
 
Fecha de Ingreso: noviembre-2002
Ubicación: Talca VII región
Mensajes: 337
Antigüedad: 21 años, 5 meses
Puntos: 1
Pos e probado y me da el siguiente error

(NokTemplate) Error: Bloque "BLOQUETABLA" inexistente dentro del Template.

y resulta que en mi template tengo esto

Código PHP:
<html>
<
head>
<
link rel="stylesheet" type="text/css" href="../includes/estilo.css">
<
script language="Javascript"  src="../includes/js.js"></script>
<title>{TITULO}</title>
</head>
<body>
<!--inicioBloque : BLOQUETABLA-->

<table align="center" width="80%" background="../imagenes/fondo.gif">
{FILAS}

<!--incioBloque : BLOQUEFILAS-->
<tr>
<td>
<a href="../index.php?cont=principal">
<img src="../imagenes/principal.gif" border="0">
</a>
</td>
<td>
<a href="../index.php?cont=descargas">
<img src="../imagenes/descargas.gif" border="0">
</a>
</td>
</tr>
<!--finBloque : BLOQUEFILAS-->

</table>
<!--finBloque : BLOQUETABLA-->
</body>
</html> 
y el code php es este
Código PHP:
include("class.NokTemplate.php");
$html= new NokTemplate("../templates");
$html->cargar('HEADER','header.tpl');
$html->definirbloque('BLOQUETABLA','HEADER');
$html->definirbloque('BLOQUEFILA','HEADER');
$html->asignar('TITULO','MSDark::.');
$html->expandir('FILAS','+BLOQUEFILA');
$html->expandir('FINAL','BLOQUETABLA');
$html->imprimir('FINAL'); 
Resulta que tengo los templates en la carpeta templates y la clase y el archivo que meda ese error dentro de la carpeta includes

Por que me da ese error si los bloques si existen en el template
__________________
DelirioLinux.. Software Libre y tecnología.. php también..
Saludos :arriba:
Usuario Linux #198486 y Ubuntu #12791
Gutsy Gibbon

Última edición por MSDark; 18/01/2003 a las 09:59