Variable deep loops

From: Date: Tue, 31 Jul 2001 15:09:50 +0000
Subject: Variable deep loops
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1301@lists.php.net to get a copy of this message
I'm trying to figure how to display variable deep things like menus with an unknown level of submenus using smarty's templates I tried to do recursive includes like <!-- menu.tpl --> {section name=menu loop=$items} {$items[menu].title} {$items[menu].link} {if $items[menu].child} {include file=menu.tpl items=$items[menu].child} {/section} <!-- menu.tpl --> but it seems to have problems with the variable menu containing the loop index and the results are not as expected any alternatives to do the same thing? thanks in advance ivan

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