* @param GET interment_id */ try { if (!isset($_GET['interment_id']) || !$_GET['interment_id']) { throw new Exception('interments/unknownInterment'); } $interment = new Interment($_GET['interment_id']); } catch (Exception $e) { $_SESSION['errorMessages'][] = $e; header('Location: '.BASE_URL.'/interments'); exit(); } $template = new Template(); $template->blocks[] = new Block('interments/intermentInfo.inc',array('interment'=>$interment)); $template->blocks['panel-one'][] = new Block('interments/mapLinks.inc', array('interment'=>$interment)); echo $template->render();