From 4ee4bbaf44e7bd7354e88ab6a84948e72311b4c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 9 Jan 2014 14:27:22 +0100 Subject: [PATCH] [fix] link for add page --- app/controllers/front.php | 3 ++- app/views/index.twig | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/front.php b/app/controllers/front.php index 6bacdc2..da7aaf4 100644 --- a/app/controllers/front.php +++ b/app/controllers/front.php @@ -38,6 +38,7 @@ $front->match('/add', function (Request $request) use ($app) { // display the form return $app['twig']->render('add.twig', array('form' => $form->createView())); -}); +}) +->bind('add'); return $front; diff --git a/app/views/index.twig b/app/views/index.twig index 95ca814..3319d96 100644 --- a/app/views/index.twig +++ b/app/views/index.twig @@ -15,7 +15,7 @@ {% endfor %} -

{{ 'entry.add'|trans }}

+

{{ 'entry.add'|trans }}

{% endif %}