function direct($throw = true) { $slug = $this->getRequest()->getParam('individu'); $t = new Individus(); try { $individu = $t->findBySlug($slug); } catch (Strass_Db_Table_NotFound $e) { $adresse = $this->getRequest()->getParam('adresse'); try { $individu = $t->findByEMail($adresse); } catch (Strass_Db_Table_NotFound $e) { if ($throw) { throw new Strass_Controller_Action_Exception_NotFound("Individu " . $slug . " inconnu."); } else { return null; } } } $this->setBranche($individu); return $individu; }