This is not a Silex problem (as of now) – Everything works perfectly on my side (Silex 1.2)
Did you register the UrlGeneratorServiceProvider
in your app ?
in web/index.php
:
$app->register(new Silex\Provider\UrlGeneratorServiceProvider());
And you should really use path()
instead of url()
in this case :
{{ path('home') }}