diff --git a/email.rst b/email.rst index c49f7826df1..a4c9a3a464f 100644 --- a/email.rst +++ b/email.rst @@ -260,7 +260,8 @@ Now, suppose you're sending an email to ``recipient@example.com`` in a controlle ->setTo('recipient@example.com') ->setBody( $this->renderView( - 'HelloBundle:Hello:email.txt.twig', + // templates/hello/email.txt.twig + 'hello/email.txt.twig', ['name' => $name] ) )