Second version with Silex and Twig