[fix] link for add page

This commit is contained in:
Nicolas Lœuillet 2014-01-09 14:27:22 +01:00
parent bee952c687
commit 4ee4bbaf44
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -15,7 +15,7 @@
</div>
{% endfor %}
<p><a href="index.php/add">{{ 'entry.add'|trans }}</a></p>
<p><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></p>
{% endif %}