diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-12 08:22:30 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2015-08-12 09:52:36 +0200 |
commit | 053b9568b2e3d032720d405bc1c2b71eccb36714 (patch) | |
tree | 1bd4241ce05c42d924f0baf34a3d1872ef6a7a4f /src/Wallabag/CoreBundle/Controller/EntryController.php | |
parent | fedaf005377e6d62ff0986f7f54afef3287a6451 (diff) | |
download | wallabag-053b9568b2e3d032720d405bc1c2b71eccb36714.tar.gz wallabag-053b9568b2e3d032720d405bc1c2b71eccb36714.tar.zst wallabag-053b9568b2e3d032720d405bc1c2b71eccb36714.zip |
add new post form in material header
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 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 |