"Variable substitution"
| From: | Mattias Hallström | Date: | Thu, 03 Mar 2005 14:35:46 +0000 |
| Subject: | "Variable substitution" | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12291@lists.php.net to get a copy of this message | ||
Hi everyone,
I am trying to get the value of a smarty variable by generating the
variables name, but I cant figure out how to
I have variables named: $class1, $class2, $class3 etc.
Then I have a {section} to get the numbers 1, 2, 3 etc
{assign var="className" value="class"
$attributeNr} (attributeNr
is the
counter: 1,2,3
)
Now I have class1, class2 etc in className, but how do I display the
value of the variables $class1, $class2 etc?
Best Regards,
Mattias Hallström
Problem.se Intelligent Web Solutions Sweden