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 %}