Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/08/2008, 19:29
cartonista
 
Fecha de Ingreso: julio-2008
Mensajes: 37
Antigüedad: 15 años, 9 meses
Puntos: 0
Interpretacion de lenguaje en TPL

Tengo un archivo que es, default.tpl, el cual contiene almacenado el template de los productos que publico, pero necesito que haga lectura de sintaxis PHP, la info es esta....

Cita:
<?PHP
///////////////////// TEMPLATE Default /////////////////////
$template_active = <<<HTML
<style type="text/css">
<!--
.style25 {font-family: tahoma; font-size: 10px; }
-->
</style>
<table width="534" height="79" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="90" height="79" background="http://www.andyimport.com/images/tb01.jpg"><div align="center" class="style25"> {title}<strong> <br>
</strong> </div></td>
<td width="131" background="http://www.andyimport.com/images/tb02.jpg"><div align="center" class="style25"> {category} </div></td>
<td width="136" background="http://www.andyimport.com/images/tb05.jpg"><div align="center" class="style32 style25"> 25 </div></td>
<td width="104" background="http://www.andyimport.com/images/tb06.jpg"><div align="center"> [full-link] {short-story} <br>
[/full-link] <strong><br>
</strong> </div></td>
<td width="73" background="http://www.andyimport.com/images/tb07.jpg"><div align="center"><a href="http://www.andyimport.com/cotizaciones.php"><img src="images/vercarrito.gif" width="24" height="21"></div></td>
</tr>
</table>
HTML;
?>
Aca como pueden ver aparece esto;

$template_active = <<<HTML
HTML
?>

dentro del HTML almacena la informacion del template, pero lo que aparece dentro solo interpreta puro HTML, hay alguna forma de lograr que interprete php??, esta parte <<<HTML, que es exactamente, una especificacion?? o el HTML no tiene mucho que ver, ya que he probado cambiar esa palabra HTML por PHP y sigue sin leer php, espero me puedan ayudar.