Select Page
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.


{foreach from=$workingDays item = item name=workingDaysList}

Output is the value of the $date_xxxx variable you set in PHP before, e.g. $date_monday.