From 5ab1adf12eba4204dbfcf23a3f7c46c68729e6ed Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Thu, 29 Jan 2015 21:41:13 -0500 Subject: [PATCH 1/2] Adding a section to emailing showing off absolute_url --- cookbook/email/email.rst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/cookbook/email/email.rst b/cookbook/email/email.rst index 4d97ec31b62..431a9d60ea1 100644 --- a/cookbook/email/email.rst +++ b/cookbook/email/email.rst @@ -123,7 +123,21 @@ an email is pretty straightforward:: } To keep things decoupled, the email body has been stored in a template and -rendered with the ``renderView()`` method. +rendered with the ``renderView()`` method. The ``registration.html.twig`` +template might look something like this: + +.. code-block:: html+jinja + + {# app/Resources/views/Emails/registration.html.twig #} +

You did it! You registered!

+ + {# example, assuming you have a route named "login" $} + To login, go to: {{ url('login') }}. + + Thanks! + + {# Makes an absolute URL to the /images/logo.png file #} + Date: Fri, 13 Mar 2015 16:51:05 -0400 Subject: [PATCH 2/2] minor tweak thanks to Javier --- cookbook/email/email.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/email/email.rst b/cookbook/email/email.rst index 431a9d60ea1..7a90d0626bc 100644 --- a/cookbook/email/email.rst +++ b/cookbook/email/email.rst @@ -132,7 +132,7 @@ template might look something like this:

You did it! You registered!

{# example, assuming you have a route named "login" $} - To login, go to: {{ url('login') }}. + To login, go to: .... Thanks!