y tngo en la portada un sistama de noticias m dice el debug: Variable "NOTICIAS" definida en el Template, no está inicializada.
como soluciono eso?
el codigo php es este
home.php
Código PHP:
<?
$html->cargar('tHome','home.html');
$html->cargar('tNews','noticias.html');
$html->cargar('tIndex','index2.html');
$html->definirBloque('notTabla', 'tNews');
if($conectar = @mysql_connect(xxx,xxx,xxx)) {
@mysql_select_db(xxx,$conectar) ;
}
$query=mysql_query("select * from noticias order by fecha Desc LIMIT 10", $connect);
$resp = mysql_query($query) or die("Error en consulta");
while ($row = mysql_fetch_array($resp)) {
$titulonot = $row[titulo];
$categorianot = $row[categoria];
$fechanot = $row[fecha];
$noticia = nl2br($row[noticia]);
$autornot = $row[autor];
$html->asignar('TITULONOT', $titulonot);
$html->asignar('FECHANOT', $fechanot);
$html->asignar('NOTICIA', $noticia);
$html->asignar('AUUTORNOT', $autornot);
$html->asignar('FECHANOT', $fechanot);
$html->asignar('CATEGORIANOT', $categoriano);
$html->expandir('NOTICIAS', '+tNews');
}
$html->expandir('FINAL', 'tHome');
$html->imprimir('FINAL');
?>
Código PHP:
<table>
{NOTICIAS}
</table>
Código PHP:
<tr align=left>
<td align=center height=25 width=500 CELLPADDING=14 background=img/topnoticias.gif>
<b>{TITULONOT}<b>
<tr align=left>
<td height=25 background=img/bgnoticias.gif width=500 CELLPADDING=14>
<table width=95% align=center><tr><td>
<p>{NOTICIA}</p>
</td></tr></table>
</td></tr>
<tr align=center>
<td background=img/downnoticias.gif align=center height=25 width=500 CELLPADDING=1>
{AUTORNOT}|{FECHANOT}|{CATEGORIANOT}|
</td></tr>