Listing 14.15. Metoda akcji plik/show
public function execute_show()
{
    if (
        isset($_GET['slug']) &&
        ($plik = PlikPeer::retrieveBySlug($_GET['slug']))
    ) {
        $this->noLayout();
        header('Content-Type: ' . $plik->getTypmime());
        echo stream_get_contents($plik->getDane());
    } else {
        $this->execute_404();
    }
}
