{{array.key}}
не печатает значение
Это мой файл ветки
<table>
<tr>
{% for count in 1..result|length %}
<td>
{% block tile %}
{% include 'tile.twig' %}
{% endblock %}
<h1>{{ result.id }}</h1>
</td>
{% if count is divisible by (6) %}
</tr>
<tr>
{% endif %}
{% endfor %}
</table>
Это мой контроллер
public function fetchMyLiveAdIdsByUserId( Request $request, Response $response )
{
$args=$request->getParams();
$args=$args['id'];
$results = $this->m_objOlxUserDetails->fetchMyLiveAdIdsByUserId($args);
return $this->view->render($response,'profile.twig',['result' => $results]);
}
Он не отображает ничего на месте {{result.id}}
И вывод var_dump ($ results); у контроллера *
array(3) {
[0]=> object(stdClass)#157 (1) {
["id"]=> int(1)
}
[1]=> object(stdClass)#185 (1) {
["id"]=> int(2)
}
[2]=> object(stdClass)#186 (1) {
["id"]=> int(4)
}
}