RE: [SMARTY] Assigning arrays in a template...
| From: | Gary Loescher | Date: | Mon, 28 Oct 2002 03:36:51 +0000 |
| Subject: | RE: [SMARTY] Assigning arrays in a template... | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6246@lists.php.net to get a copy of this message | ||
Here's a modification of Jens Lehmann's assign_array plugin
that can create associative arrays. I added an "associative"
parameter that is either "yes" or "no". If yes, then it reads
the values as key/value pairs so that values="foo,bar" becomes
array( 'foo' => 'bar' ).
HTH,
Gary