Commit 3deb195b by Frédéric

Update BoltFormExtendedExtension.php

parent d0ecd648
......@@ -15,6 +15,14 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class BoltFormExtendedExtension extends SimpleExtension
{
/**
* Register twig paths for application
*/
protected function registerTwigPaths()
{
return ['templates'];
}
/**
* Define events to listen to here.
*
* @param EventDispatcherInterface $dispatcher
......@@ -37,6 +45,10 @@ class BoltFormExtendedExtension extends SimpleExtension
if($event->getFormConfig()->getName() === 'contact') {
$formData = $event->getFormData();
dump($formData);
$html = $this->getContainer()['twig']->render("email_sender.twig", []);
dump($html);
die();
}
$emailConfig = $event->getEmailConfig();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment