I created a new bundle where twig files shall be included. From default there is already a twig file added by the generate bundle command line (in src/TestBundle/Resources/views/test.html.twig
). There is also the render-command added automatically in IndexAction:
return $this->render('TestBundle:test.html.twig', $data);
But when I call the IndexAction, I get a template not found error, and the error says, that symfony only looked in
/app/Resources/views,
/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form
but not in /src/TestBundle/...
Why does symfony ignore the bundle Resources? And how could I change that?