comparison simple.php @ 0:c86959030ae8

Import initial
author Franck Deroche <webmaster@defr.net>
date Sat, 10 Mar 2007 21:48:42 +0100
parents
children 888b9807b2b3
comparison
equal deleted inserted replaced
-1:000000000000 0:c86959030ae8
1 <?php
2 require 'class.template.php';
3 $tpl = new Template('simple.xml');
4 $params = array(
5 'title' => 'Ceci est un test',
6 '#hello' => 'Bonjour tout l\'monde!',
7 '#hello@class' => 'test3',
8 'test' => 'Ceci devrait remplacer l\'element test dans l\'espace de nom t.',
9 'color' => 'vert',
10 '#attr@class' => 'test',
11 '#choses' => array(
12 array('li' => 'Lorem ipsum', 'li@class' => 'test'),
13 array('li' => 'sit dolor'),
14 array('li' => 'amet.')
15 ));
16 $tpl->setParams($params);
17 echo $tpl;
18 ?>