Listing 21.1. Widok akcji piosenka/index w aplikacji backend
<table>
<tr>
    <th>Tytuł</th>
    <th>Edytuj</th>
    <th>Usuń</th>
</tr>
    <?php foreach ($Piosenkas as $Piosenka): ?>
        <tr>
            <td><?php echo $Piosenka ?></td>
            <td><a href="<?php echo url_for('piosenka/edit?piosenka_id=' . $Piosenka->getPiosenkaId()) ?>">[edytuj]</a></td>
            <td><?php echo link_to('[usuń]', 'piosenka/delete?piosenka_id=' . $Piosenka->getPiosenkaId(), array('confirm' => 'Jesteś pewien?')) ?></td>
        </tr>
    <?php endforeach; ?>
</table>
<p class="center">
<a href="<?php echo url_for('piosenka/new') ?>">Dodaj nową piosenkę</a>
</p>