Nested Repeat Region

Contoh :

<table class="table table-hover">

<?php foreach($moduls as $modul){?>

<tr>

<td colspan="3">

<strong><?php $TFM_nest = $modul->getKategori();?></strong>

<?php If ($lastTFM_nest <> $TFM_nest) { ?>

<?php $lastTFM_nest = $TFM_nest ;?>

<?php echo $TFM_nest ;?>

<?php } ?>

</td>

</tr>

<tr>

<td><span class="glyphicon glyphicon-chevron-right"></span></td>

<td><?php echo $modul->getJudul();?></td>

<td></td>

</tr>

<?php } ?>

</table>