aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/EntryController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/EntryController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index 29e0ffb0..ef686ff1 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -15,11 +15,11 @@ class EntryController extends Controller
15 /** 15 /**
16 * @param Request $request 16 * @param Request $request
17 * 17 *
18 * @Route("/new", name="new_entry") 18 * @Route("/new-entry", name="new_entry")
19 * 19 *
20 * @return \Symfony\Component\HttpFoundation\Response 20 * @return \Symfony\Component\HttpFoundation\Response
21 */ 21 */
22 public function addEntryAction(Request $request) 22 public function addEntryFormAction(Request $request)
23 { 23 {
24 $entry = new Entry($this->getUser()); 24 $entry = new Entry($this->getUser());
25 25
@@ -45,12 +45,24 @@ class EntryController extends Controller
45 return $this->redirect($this->generateUrl('homepage')); 45 return $this->redirect($this->generateUrl('homepage'));
46 } 46 }
47 47
48 return $this->render('WallabagCoreBundle:Entry:new.html.twig', array( 48 return $this->render('WallabagCoreBundle:Entry:new_form.html.twig', array(
49 'form' => $form->createView(), 49 'form' => $form->createView(),
50 )); 50 ));
51 } 51 }
52 52
53 /** 53 /**
54 * @param Request $request
55 *
56 * @Route("/new", name="new")
57 *
58 * @return \Symfony\Component\HttpFoundation\Response
59 */
60 public function addEntryAction(Request $request)
61 {
62 return $this->render('WallabagCoreBundle:Entry:new.html.twig');
63 }
64
65 /**
54 * Edit an entry content. 66 * Edit an entry content.
55 * 67 *
56 * @param Request $request 68 * @param Request $request