Ver Mensaje Individual
  #10 (permalink)  
Antiguo 07/05/2009, 13:45
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: Include de PHP en un archivo TPL

Mmmm puedes usar funciones de control de salida:
Código php:
Ver original
  1. <?php
  2. $category = "1";
  3. $number = "10";
  4. include("noticias/show_news.php");
  5. $news = ob_get_clean();
  6.  
  7. $tpl->assign('noticias', $news);

Saludos.