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