recusive functions and Smarty

From: Date: Fri, 23 Mar 2001 09:49:42 +0000
Subject: recusive functions and Smarty
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-403@lists.php.net to get a copy of this message
Hi, I use a recursive function. This function creates a structure like: <ul> <li>foo</li> <li>foo</li> <li>foo</li> <ul> <li>foo</li> <li>foo</li> </ul> <li>foo</li> </ul> There are two functions to realise this output: child_exits($parent) and print_child($parent) print_childs creates the output via echo "<li>$foo" and so on. The recursion is also in print_childs: if (child_exists($id)) { print_childs($id); } Now I will use Smarty for this problem. But how can I deal with recursion in Smarty? Any hints? Best regards Andreas Kaiser -- vocote.de e.K. Internetapplikationen, Webdesign, Webhosting Neudörfeler Str. 4a - D-08543 Jocketa Telefon: +49-37439-77175 - Fax: +49-37439-77185 WWW: http://www.vocote.de - email: mailto:info@vocote.de

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