Silex & Twig helpers in custom error pages

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') }}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)