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 --- src/WallabagBundle/Controller/EntryController.php | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/WallabagBundle/Controller/EntryController.php (limited to 'src/WallabagBundle/Controller/EntryController.php') 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