<ul>
<?php foreach ($this->treny as $tren) : ?>
<li>
<a href="<?php
echo $this->url(
array(
'action' => 'show',
'tren_id' => $tren['tren_id']
),
'default')
?>">
<?php echo $tren['tytul']; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
Listing 23.6. Widok częściowy menu.phtml
Rozdział 23. Menu generowane na podstawie zawartości tabeli bazy danych