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