Skip to content

Instantly share code, notes, and snippets.

@christoph-hautzinger
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christoph-hautzinger/f37caca7b025d6b42ef5 to your computer and use it in GitHub Desktop.
Save christoph-hautzinger/f37caca7b025d6b42ef5 to your computer and use it in GitHub Desktop.
EmailController.php
public function indexAction($name)
{
// ...
// looks for AppBundle/Resources/emails/email-with-twig-superpowers.xml.twig
$this->get('system_mailer')->send('App:email-with-twig-superpowers', [
'users' => $users,
'name' => $name,
]);
return $this->render(...);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment