This entry has been published on 2012-06-21 and may be out of date.
Last Updated on 2012-06-21.
If you want to access dynamic variable names in Smarty and cannot use arrays for any reason, you can use a Smarty var nested in another Smarty var.
Example:
</pre>
{foreach from=$workingDays item = item name=workingDaysList}
{$date_{$item}}
{/foreach}
<pre>
Output is the value of the $date_xxxx variable you set in PHP before, e.g. $date_monday.