Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/07/2009, 18:34
HaX
 
Fecha de Ingreso: octubre-2007
Mensajes: 34
Antigüedad: 16 años, 7 meses
Puntos: 0
Respuesta: capa ui y template

ok GatorV,, busque motores de plantillas, probe con distintos y ninguno me fuciono, al final no me muestra nada!!

el motor con el cual decidi qedarme con NokTemplate ( zonaphp.com/noktemplate-facil-rapida-y-en-castellano/3/ ),- el foro no me dejo colocarla como enlaze xD SORRY - .Es super simple, pero aun asi no logra hacer funcionar esto :(
tengo mi clase en php, ubicada en el directorio mtrial.

Código PHP:
<?php

include('class.NokTemplate.php');
class 
ui_administracion_trial{
    
        var 
$obj;
                 
    function 
ui_administracion_trial(){
        
$this->obj = new so_administracion_trial();
        
$html = new NokTemplate('./templates');
    }

    function 
index(){
        
        
$html->cargar('tCuerpo','cuerpo.html');
        
$html->asignar('TITULO','Trial!!!');
        
$html->expandir('FINAL''tCuerpo');
        
$html->imprimir('FINAL');

    }
}
?>
y tengo mi template llamado cuerpo.html en el directorio templates. ubicado dentro de mtrial
Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>{TITULO}</title>
</head>
<body>
</body>
</html> 
no se que estoy haciendo mal, que no logro hacer funcionar esto!!! ayuda pls!