Confused about passing Arrays to Smarty Template

From: Date: Mon, 14 Apr 2003 19:00:16 +0000
Subject: Confused about passing Arrays to Smarty Template
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9246@lists.php.net to get a copy of this message
The documentation doesn't have a lot of examples of this, but I'd like to pass some associative arrays and indexed arrays to my Smarty template, but I'm confused on how to do it. Let's say I have an array I'm creating on the fly: $x=1; foreach(array("a","b","c") as $letter) { foreach (array("1","2","3") as $number) { $Arr{$letter}{$number} = $x; $x++; } } Now, I want to pass this entire $Arr array to a smarty template, can you give me an example how to do that? Thanks! Nancy M.

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