How can i define variable not in PHP
but in .TPL
? (smarty template file)
Asked
Active
Viewed 2.9k times
2 Answers
25
{assign var=foo value=Test}
or some more complicated example:
{assign var=foo value={cycle values="first,second"}}

Svisstack
- 16,203
- 6
- 66
- 100
-
Does that second example actually work (in versions 2.*)? – Halil Özgür Nov 12 '10 at 18:49