Listing 14.28. Metoda indexAction() akcji index/index
public function indexAction()
{
    $bootstrap = $this->getInvokeArg('bootstrap');
    $db = $bootstrap->getResource('db');
    $sql = 'select * from wiersz order by tytul';
    $this->view->wiersze = $db->fetchAll($sql);
}