TphpWebTpl

Classe gérant l'affichage text/html

Fonction getView

Permet récupérer le HTML du template

Appel :
TphpWebTpl::getView($path, $data = []);
$path : le chemin du template "produit.detail" par exemple
$data : C'est la variable contenant les data utilisé par le template.

Retour :
string : $html

Fonction inc

Appel le template

Appel :
TphpWebTpl::inc($name,$conf=[],$param=[]);
Retour :
output

Code source TphpWebTpl :