Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/06/2008, 14:29
iozk
 
Fecha de Ingreso: mayo-2008
Mensajes: 499
Antigüedad: 16 años
Puntos: 1
error en mostrar tpl 'desesperante' XC

entro mi tpl y no lo carga que esta pasando.....
<?php
function mostrarTemplate($tema, $variables)
{
//var_dump($variable);
extract($variables);
eval("?>".$tema."<?");
}
$agenda = array(
"0" => array("nombre"=>"oscar", "edad"=>"18","domicilio"=>"etc etc"),
"1" => array("nombre"=>"oscar", "edad"=>"17","domicilio"=>"etc etc"),
"2" => array("nombre"=>"oscar", "edad"=>"16","domicilio"=>"etc etc"),
);
$tpl = implode("index.tpl",file("ejempl.html"));
foreach($agenda as $registro)
(
mostrarTemplate($tpl,$registro)
)
?>

muestra esto

Warning: file(ejempl.html) [function.file]: failed to open stream: No such file or directory in C:\wamp\www\mis doc.php\templade.php on line 13

Warning: implode() [function.implode]: Invalid arguments passed in C:\wamp\www\mis doc.php\templade.php on line 13
<?<?<?