problem with dynamic vars

From: Date: Tue, 25 Mar 2003 09:26:50 +0000
Subject: problem with dynamic vars
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1014@lists.php.net to get a copy of this message
Hello smarty-dev, I pass few awways into smarty: $array1, $array2, $array3 and so on. In smarty i loop another array with foreach, and i try to access the current array (f.g. if it`s the 2nd loop, smarty should take $array2). In php code, it can be ${'array'.$i} where $i - loop number. I tried to access in smarty {foreach from="$array$loop_number"..} and other combinations, but no one worked. :( Any ideas? -- Best regards, WeeTzkAh mailto:weetzkah@xxx.lt

« previous php.smarty.dev (#1014) next »