I have two loops running in my code, I want to use an element from an array as the key in a second array, but am unsure how to do this with Smarty.
"$dateAndUserForEdit.$key.edit_id
" contains an integer (pulled from the db)
I want to use that value as the key in a second loop, which runs fine if I harcode in the integer:
{foreach from=$historyOfRepair.9 key=key item=i}
Pseudo code for the sort of thing I've been trying is:
{foreach from=$historyOfRepair.{$dateAndUserForEdit.$key.edit_id} key=key item=i}
But of course, this doesn't work! Can anybody help?