I have two arrays: teachers_number_array which contains the id of teachs and the another array 'teachers' witch contains the data of each teacher.
What I can't do is to show the name of a specific teacher based on its id:
{% for teachers_number in teachers_number_array %}
{% if teachers_number in teachers|keys %}
{{ teachers.teachers_number.name }}
{% endif %}
{% endfor %}
{{ teachers[teachers_number].name }}orattribute(teachers, teacher_number).name)