Variables in arguments

From: Date: Mon, 24 Mar 2003 18:39:59 +0000
Subject: Variables in arguments
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8866@lists.php.net to get a copy of this message
I have a smarty function which I pass values like this: {section name=nr loop=$threads} {headline name="Subject: $threads[nr].SUBJECT"} {/section) which only prints Array[nr].SUBJECT I can't pass $smarty.section.nr.index either, this returns syntax error: $smarty. is an unknown reference (Smarty_Compiler.class.php, line 1767) in /www/tsn/lib/smarty/libs/Smarty_Compiler.class.php on line 1820 Is this an error in the function, or in smarty? -- Tom Sommer, Denmark www.tsn.dk - www.dreamcoder.dk

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