I created a new package that will include twig files. By default, there is already a twig file added by the command line of the generated package (in src/TestBundle/Resources/views/test.html.twig ). The render-command has also been added to IndexAction:
return $this->render('TestBundle:test.html.twig', $data);
But when I call IndexAction, I get a template of an error not found, 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 package resources? And how can I change that?
Asara source share