• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to use Variable within variable in xenforo Template?

#1
I am passing two variable in view like
PHP:
$viewParams = array(
'calendar' => $yearCalender,
'currentMonth' => $currentMonth,
);

calender is array that have html code on each index and currentMonth is integer value when i am trying to access it in template with
Code:
{xen:raw $calendar.$currentMonth}
then it giving me error but when i do it like
Code:
{xen:raw $calendar.12}
then it works but that is static i want to make it dynamic how can i do it??