view menu.php @ 9:d06e9d5ff344

Affichage correctement indenté (d'après PHP) du fichier XML de sortie.
author Franck Deroche <webmaster@defr.org>
date Sun, 21 Oct 2007 14:30:54 +0200
parents c86959030ae8
children 54b0a41e5564
line wrap: on
line source
<?php
    require 'class.template.php';
    $tpl = new Template('menu.xml');
    $params = array(
        '#monMenu' => array(
            array('dt' => 'Test1'),
            array('dd' => 'Truc1'),
            array('dt' => 'Test2'),
            array('dd' => 'Truc2')
        )
    );
    $tpl->setParams($params);
    echo $tpl;
?>