My database:
+----+-------+-------+
| id | slug | text |
+----+-------+-------+
| 1 | link1 | text1 |
| 2 | link2 | text2 |
| 3 | link3 | text3 |
+----+-------+-------+
My array (queried from database):
Array
(
[0] => Array
(
[id] => 1
[slug] => link1
[text] => text1
)
[1] => Array
(
[id] => 2
[slug] => link2
[text] => text2
)
[2] => Array
(
[id] => 3
[slug] => link3
[text] => text3
)
I want to write my view like this but I can't get it to work in a loop. (I sent the array for parsing already).
<ul>
{xxxxx}
<li><a href="{slug}">{text}</a></li>
{/xxxxx}
</ul>