From fb182cdeeb54478f634d8d7a6d49d53d3dec69e1 Mon Sep 17 00:00:00 2001 From: Shadify Date: Thu, 30 Nov 2017 13:06:42 +0100 Subject: Added all readings for graph --- src/AppBundle/Controller/AllDataController.php | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/AppBundle/Controller/AllDataController.php (limited to 'src/AppBundle/Controller/AllDataController.php') diff --git a/src/AppBundle/Controller/AllDataController.php b/src/AppBundle/Controller/AllDataController.php new file mode 100644 index 0000000..18a30a1 --- /dev/null +++ b/src/AppBundle/Controller/AllDataController.php @@ -0,0 +1,38 @@ + $item) + { + $data[$index]['TimeStamp'] = gmdate("l jS \of F Y h:i:s A", $item['TimeStamp']); + } + + $parametersToTwig = array("data" => $data); + + + return $this->render('default/AllDataPage.html.twig',$parametersToTwig); + + + } +} \ No newline at end of file -- cgit v1.2.3