$smarty.post.myArray[index] in cvs

From: Date: Mon, 10 Mar 2003 10:40:58 +0000
Subject: $smarty.post.myArray[index] in cvs
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8523@lists.php.net to get a copy of this message
Hi, smarty stable allows to loop through a $_POST array with a section like: {section name=index loop=$smarty.post.posted_vars} {$smarty.post.posted_vars[index]} {/section} posted_vars are posted by means of: posted_vars[]="value1" posted_vars[]="value2" and so on With the latest and previous cvs versions I get an error: syntax error: $smarty.post.posted_vars is an invalid reference (Smarty_Compiler.class.php, line 1681) in c:\php\pear\Smarty\Smarty_Compiler.class.php on line 1812 that's because the '[' bracket gets caught as being !='.' in line 1681 Is it meant to be so? Paolo

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