You should post the complete code here, it doesn’t make sense that you call both the main at the nested structure on $accordeon (whatever $accordeon is in this context).
Here is an example: How to loop through a nested structure? - #3 by texnixe
You should post the complete code here, it doesn’t make sense that you call both the main at the nested structure on $accordeon (whatever $accordeon is in this context).
Here is an example: How to loop through a nested structure? - #3 by texnixe