Listing 23.6. Widok częściowy menu.phtml
<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>