Login   Register  
PHP Classes
elePHPant
Icontem

File: ClassTestFile/testTemplateManagerDynamic2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Guerrieri Luca  >  PXAServer  >  ClassTestFile/testTemplateManagerDynamic2.php  >  Download  
File: ClassTestFile/testTemplateManagerDynamic2.php
Role: Example script
Content type: text/plain
Description: Test for Template Manager Class
Class: PXAServer
Library to build applications configured with XML
Author: By
Last change:
Date: 7 years ago
Size: 578 bytes
 

Contents

Class file image Download
<?php
/*
 * File di test della classe Template Manager
 */
 //require ('../libreria/global.inc.php');
 
require ('../libreria/libfunz.inc.php');
 
 
$link=db_connect();
 
 
$Qm = new QueryManager;
 
$Qm ->set_query('Q_utenti');
 
$Qr = new QueryResult($Qm ->get_static_query(),"assoc",$link);    //rilascia un array con il risultato della query eseguita
 
$query_array $Qr-> result;
 
db_close($link);
 
$tm = new TemplateManager;
 echo 
"la query  : ".$Qm ->get_static_query();
 echo 
$tm->make_dynamic_template('template01','query1.tpl','query1.xml',$query_array);
?>