Re: howto loop nested arrays?
| From: | Andrei Zmievski | Date: | Sun, 15 Apr 2001 15:40:15 +0000 |
| Subject: | Re: howto loop nested arrays? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-546@lists.php.net to get a copy of this message | ||
This will be really easy with the next release of Smarty.
At 12:51 PM 4/15/01 +0200, Hojtsy Gabor wrote:
Hi! I am just wondering how to loop through this array in smarty. array( array(-Andrei"one" => 1, "two" => 2, "another" => array ("o" => 1, "t" => 2)) array("one" => 3, "two" => 4, "another" => array ("o" => 12, "t" => 43)) ) So I know I can have one outer section. Lets say we assigned this array as ex. {secition name=outer loop=ex} <br>{$outer/ex.one}<br>{$outer/ex.two} {section name=inner loop=$outer/ex.another} The question is how to name the inner loop section with the loop var, and then how to access the vars? {/section} {/section} Thanks, Goba ........................................................... . . . . . Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror --- You are currently subscribed to smarty as: andrei@ispi.net To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/