Accessing arrays in value-property of {assign}
| From: | Ronny 'Ronino' Multrus | Date: | Fri, 14 Mar 2003 14:00:01 +0000 |
| Subject: | Accessing arrays in value-property of {assign} | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8650@lists.php.net to get a copy of this message | ||
Hello,
is there any way of assigning values of an array in {assign}?
{assign var="someVar" value="$someArray.someValue"}
just outputs
Array.someValue
{assign var="someVar" value="$smarty.post.someValue"}
outputs
Fatal error: Smarty: [in template.tpl line 8]: syntax error: $smarty. is an
unknown reference (Smarty_Compiler.class.php, line 1759) in
/path/to/Smarty_Compiler.class.php on line 1812
I'm using 2.5RC1.
Btw: Is there any IRC-Channel where Smarty-users/developers discuss?
Ronino
--
Freie Software für eine freie Welt - keine Software-Patente!
http://petition.eurolinux.org/index_html?LANG=de