Listing 10.11. Metoda execute_show() modułu tren
public function execute_show()
{
    if (
        isset($_GET['slug']) &&
        str_ivslug($_GET['slug']) &&
        ($tren = Doctrine::getTable('Tren')->findOneBySlug($_GET['slug']))
    ) {
        $this->set('tren', $tren);
    } else {
        $this->execute_404();
    }
}
