I am trying to access a nested array inside html code using smarty. For example i have an array that looks like this: Array(customer)[name, age, id[firstname, lastname, birthdate]]. I have been trying something like this:
{foreach from=$customer item=foo}
Customer id: {$foo.id}
{/foreach}
But this doesent print any values to the page. However with this syntax
{foreach from $customer item=foo}
{$foo.id} // or {$foo.id.0}
{/foreach}
It prints out: Array
How do i access the values of nested array using smarty?