silex
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’) }}
Twig Access Array Index?
Just before posting this I realized, that’s exactly what you can do, but as I didn’t find the answer anywhere in the docs or google (correct me if I’m wrong), I’ve posted this anyway. {{numbers[0]}}