Ver Mensaje Individual
  #7 (permalink)  
Antiguo 26/08/2008, 14:59
Avatar de blittcer
blittcer
 
Fecha de Ingreso: noviembre-2007
Mensajes: 125
Antigüedad: 16 años, 5 meses
Puntos: 1
Respuesta: es posible insertar codigo php en un archivo tpl?

tengo el mismo problema, tengo un cms, Datalife Engine 7.0 y he leido esto (los primeros pasos me quedan claros pero lo ultimo de rssfeeds ni idea..):

A small hack, which makes it possible to use any PHP the code in the templates. Good if you want

to use say, IPB last posts on website hack and add it as a module to the main page of DLE.

Open index.php find the line:
echo $tpl->result['main'];

Replace with:
eval (' ?' . '>' . $tpl->result['main'] . '<' . '?php ');

From now on you can add code like this in a module.
#include virtual="/rssfeeds.php" -->


Gracias de antemano
__________________
Si vas al Gimnasio y quieres conseguir buenos resultados: Fitness, Dietas y Entrenamientos