Le samedi 09 août 2008 à 10:22 +0200, Guillaume Lecanu a écrit :
> Hi,
>
> I have just tried your example.
>
> Here is my list attached to PHPTAL :
>
> $tpl->set('listmenu', array(
> array('title' => 'First', 'submenu' => null),
> array('title' => 'Second', 'submenu' => array(
>
Hi,
I have just tried your example.
Here is my list attached to PHPTAL :
$tpl->set('listmenu', array(
array('title' => 'First', 'submenu' => null),
array('title' => 'Second', 'submenu' => array(
array('title' => 'Youp', 'submenu' => null),
)),
arra
Le vendredi 08 août 2008 à 17:24 +0100, Kornel Lesiński a écrit :
> On 08-08-2008 at 17:18:31 Guillaume Lecanu <[EMAIL PROTECTED]> wrote:
>
> > But all the structure is stored in DB, so I don't know in advance if one
> > menu have 1, 2, or 10 childrens, and I don't know if a children is a
> > sub
I think the only way to do nested structures with PHPTAL is using
Metal's macros. Have you looked at it?
Iván
On Fri, Aug 8, 2008 at 6:18 PM, Guillaume Lecanu <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I need to make a menu, with some sub-menus and other sub-menus etc.
>
> For example :
>
> * Menu A
On 08-08-2008 at 17:18:31 Guillaume Lecanu <[EMAIL PROTECTED]> wrote:
But all the structure is stored in DB, so I don't know in advance if one
menu have 1, 2, or 10 childrens, and I don't know if a children is a
submenu.
I know how to do that in PHP without PHPTAL, but how is it possible to
do