Recursion
| From: | Daniel Pupius | Date: | Thu, 10 Apr 2003 10:38:39 +0000 |
| Subject: | Recursion | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-1125@lists.php.net to get a copy of this message | ||
Is it possible to ouput recursive arrays or objects from smarty. If for
example I have something like this:
$object
->id
->title
->children
Where children is an array of objects of the same class as $object, can I
loop through them and print them out as nested <UL>s. If not I'm going to
have to pass smarty some HTML which I don't really like doing.
Cheers
Dan