From 9d50517ceaeadaba227ccdbaa43a5918abd16728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 22 Jan 2015 17:18:56 +0100 Subject: migrating legacy to symfony --- .../Controller/DefaultController.php | 17 --------------- src/WallabagBundle/Controller/EntryController.php | 25 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 17 deletions(-) delete mode 100644 src/WallabagBundle/Controller/DefaultController.php create mode 100644 src/WallabagBundle/Controller/EntryController.php (limited to 'src/WallabagBundle/Controller') diff --git a/src/WallabagBundle/Controller/DefaultController.php b/src/WallabagBundle/Controller/DefaultController.php deleted file mode 100644 index 1030b7a6..00000000 --- a/src/WallabagBundle/Controller/DefaultController.php +++ /dev/null @@ -1,17 +0,0 @@ -render('default/index.html.twig'); - } -} diff --git a/src/WallabagBundle/Controller/EntryController.php b/src/WallabagBundle/Controller/EntryController.php new file mode 100644 index 00000000..0c0c1569 --- /dev/null +++ b/src/WallabagBundle/Controller/EntryController.php @@ -0,0 +1,25 @@ +getDoctrine()->getRepository('WallabagBundle:Entries'); + $entries = $repository->findUnreadByUser(1); + + return $this->render( + 'WallabagBundle:Entry:entries.html.twig', + array('entries' => $entries) + ); + + } +} -- cgit v1.2.3