public function showAction()
{
$slug = $this->_request->getParam('slug', 'brak');
$Aktor = new Application_Model_DbTable_Aktor();
$this->view->aktor = $Aktor->findOneBySlug($slug);
if (!$this->view->aktor) {
throw new Zend_Controller_Action_Exception('Błąd', 404);
}
}
Listing 22.15. Metoda showAction() kontrolera AktorController.php
Rozdział 22. Widoki częściowe