<table>
<tr>
<th>lp.</th>
<th>Państwo</th>
</tr>
<?php $i = 1; ?>
<?php foreach ($this->panstwa as $p): ?>
<tr>
<td><?php echo $i++; ?>.</td>
<td>
<a href="<?php echo $this->url(array('slug' => $p['slug']), 'panstwo_show') ?>">
<?php echo $p['nazwa'] ?>
</a>
</td>
</tr>
<?php endforeach; ?>
</table>
Listing 22.4. Widok częściowy panstwa_index.phtml
Rozdział 22. Widoki częściowe