view menu.php @ 13:673d9845fc16

Ajout d'un exemple plus complet basé sur DualBlog
author Franck Deroche <webmaster@defr.org>
date Mon, 22 Oct 2007 08:59:58 +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;
?>