19
map.php
Normal file
19
map.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
// load dataset
|
||||
require_once('Models/FacilityDataSet.php');
|
||||
|
||||
// make a view class
|
||||
$view = new stdClass();
|
||||
$view->pageTitle = 'Map';
|
||||
|
||||
// initialise facility data
|
||||
$facilityDataSet = new FacilityDataSet();
|
||||
$view->facilityDataSet = $facilityDataSet->fetchAll();
|
||||
|
||||
// Log any critical errors
|
||||
if ($view->facilityDataSet === false) {
|
||||
error_log('Error fetching facility data');
|
||||
}
|
||||
|
||||
// load main view
|
||||
require_once('Views/map.phtml');
|
Reference in New Issue
Block a user