Assuming you're using the KOstache module, Kostache::factory()
and assigning your multidimensional array in your controller. Then using an Implicit iterator to loop through all elements.
Ko(mu)stache - multidimensional arrays
문제
I have a table like this:
<table>
<?php foreach($var as $val): ?>
<tr>
<?php foreach($val as $row): ?>
<td> ... </td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</table>
How can I code this with mustache?
해결책
제휴하지 않습니다 StackOverflow