Non-associative arrays
| From: | L. Patrick Smallwood | Date: | Sat, 29 Jun 2002 02:16:30 +0000 |
| Subject: | Non-associative arrays | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5090@lists.php.net to get a copy of this message | ||
How does one assign non-associative arrays from php to a smarty template?
For example the (pseudo) code snippet:
$smarty->assign("some_var[i]", $var[i]);
or even $smarty->assign("some_array", $var);
Where ..
$var[1] = "something"; $var[2] = "something_else";
I am sure this has come up before, but a search through the mailing list
archive, and thru the documentation didnt seem to help. :(