From 0575ee556944b85e14bdc664bb9e67234edf1836 Mon Sep 17 00:00:00 2001 From: marwolaethblack Date: Thu, 23 Nov 2017 11:54:46 +0100 Subject: Show data from api --- src/AppBundle/Controller/DefaultController.php | 21 ------------- src/AppBundle/Controller/HomeController.php | 41 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 21 deletions(-) delete mode 100644 src/AppBundle/Controller/DefaultController.php create mode 100644 src/AppBundle/Controller/HomeController.php (limited to 'src/AppBundle') diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php deleted file mode 100644 index cecd334..0000000 --- a/src/AppBundle/Controller/DefaultController.php +++ /dev/null @@ -1,21 +0,0 @@ -render('default/index.html.twig', [ - 'base_dir' => realpath($this->getParameter('kernel.project_dir')).DIRECTORY_SEPARATOR, - ]); - } -} diff --git a/src/AppBundle/Controller/HomeController.php b/src/AppBundle/Controller/HomeController.php new file mode 100644 index 0000000..6190951 --- /dev/null +++ b/src/AppBundle/Controller/HomeController.php @@ -0,0 +1,41 @@ +render('default/index.html.twig',$data); + } + +} \ No newline at end of file -- cgit v1.2.3