fahad ashraf
Well-known member
I am passing two variable in view like
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
then it giving me error but when i do it like
then it works but that is static i want to make it dynamic how can i do it??
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}
Code:
{xen:raw $calendar.12}