I have created a custom template that I am trying to render from a controller. I have placed the template in src/MyCompany/AppBundle/Contact/contact.html.twig
and am using this line to try to bring it in:
return $this->render('AppBundle:Contact:contact.html.twig', array(
'form' => $form->createView()
));
But I get this InvalidArgumentException when loading the controller:
Unable to find template "AppBundle:Contact:contact.html.twig" (looked into: /usr/src/app/app/Resources/views, /usr/src/app/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form, /usr/src/app/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views).
Is there a simple way to find out how I should be referencing this template?