Mercurial > defr > templates
view menu.php @ 14:54b0a41e5564
Menu un peu plus proche d'être fonctionnel.
Il y a de fortes chances qu'au final on obtienne un fonctionnement
se rapprochant de ça. Il faudrait toutefois pouvoir definir la
valeur de noeuds fils et pas d'attributs par contre a priori.
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Mon, 22 Oct 2007 10:07:42 +0200 |
parents | c86959030ae8 |
children |
line wrap: on
line source
<?php require 'class.template.php'; $tpl = new Template('menu.xml'); $params = array( '#monMenu' => array( array('wrapper@dt' => 'Test1', 'wrapper@dd' => 'Truc1'), array('wrapper@dt' => 'Test2', 'wrapper@dd' => 'Truc2') ) ); $tpl->setParams($params); echo $tpl; ?>