You are on page 1of 1

Jos Adn Lpez Snchez

ISC
Encabezado, contenido y pie->Smarty






Encabezado Contenido Pie de pgina

html.tpl (body)

{include file="encabezado.html.tpl"}<p>
//xajax {$include}{include file=$contenido} <p>
{include file="footer.html.tpl"}<p>

Index.php

<?php
require_once dirname(__FILE__) . "/include/smarty.php";
require_once dirname(__FILE__) . "/include/database.php";

$oSmarty -> assign("contenido","contenido_1.html.tpl");
$oSmarty -> display("body.html.tpl");
?>