I am using Bolt 3.3.6 and have created an extension with a controller that is called via ajax. The controller creates an email from a twig template and then sends the email but it can't find the twig template for some reason. The email.twig template file is located in the extensions'
templates directory, as per other templates that work as expected.
Do I need to clear some cache somewhere for it to find this new template?
$content = $this->app['twig']->render('email.twig', )->__toString();
"message":"Template "email.twig" is not defined."