I have an array of this type:
Array ( [data] => Array ( [0] => tratata [1] => blabla ) [data_key] => Array ( [0] => the first key [1] => the second one ) ) And I tried to display it like this:
{% for key, value in L10_DATA %} <tr> <th> {{ value.data_key }} </th> <td> {{ value.data }} </td> </tr> {% endfor %} But this code does not work: c Help me please
$data = array_combine($x['data_key'], $x['data'])- teranarray_map(null, $x['data'], $x['data_key']). It is not necessary to load the template with logic, which should be done in the controller, prepare the data initially so that it is convenient to work with them when outputting, and not crutches. - teran