Re: Variable deep loops

From: Date: Tue, 31 Jul 2001 17:16:18 +0000
Subject: Re: Variable deep loops
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1303@lists.php.net to get a copy of this message
Hello Ivan, Tuesday, July 31, 2001, 6:09:50 PM, you wrote: IL> I'm trying to figure how to display variable deep things like menus with an unknown IL> level of submenus using smarty's templates IL> I tried to do recursive includes like here is example of diplaying tree. {section name=cat loop=$cat_list} <img src="/im/t.gif" width={$cat_list[cat].ident}height=1>{$cat_list[cat].caption} <br> {/section} of course your have to worry about idents in PHP code. but its simple. you have recursion in PHP, not in template. -- Best regards, Konstantin mailto:ameoba32@mail.ru

« previous php.smarty.general (#1303) next »