failing with php flight and twig