public function detalle($id) { Session::tienePermiso('detalle'); $donante = Donante::getById($id); if ($donante->getId() != null) { $this->view->renderizar("detalle", array("donante" => $donante)); } else { header('Location: /?uri=donante/listado/notFound'); } }