From 7aeaffd0b8bbd3ed7418d309daa66e46bc8b36a5 Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Mon, 14 May 2018 13:30:00 +0200 Subject: [PATCH] style on test mail --- app/Resources/views/default/test-email.html.twig | 14 +++++++++++--- app/config/routing.yml | 2 +- src/AppBundle/Controller/DefaultController.php | 4 +--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app/Resources/views/default/test-email.html.twig b/app/Resources/views/default/test-email.html.twig index f9bea09e..0da7411a 100644 --- a/app/Resources/views/default/test-email.html.twig +++ b/app/Resources/views/default/test-email.html.twig @@ -1,7 +1,15 @@ {% extends 'base.html.twig' %} {% block bigMain %} -

tadam test de mail {{ name }}

- le contenu - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus doloremque exercitationem provident quae quod soluta sunt velit. Architecto, assumenda deserunt expedita laudantium nemo voluptatem. Atque commodi est iste itaque mollitia. Consequatur cumque cupiditate eveniet facilis illo illum impedit itaque omnis placeat quaerat, quia quidem ratione saepe similique sunt veniam veritatis. +
+

tadam test de mail

+

+ + + le contenu Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus doloremque exercitationem + provident quae quod soluta sunt velit. Architecto, assumenda deserunt expedita laudantium nemo voluptatem. + Atque commodi est iste itaque mollitia. Consequatur cumque cupiditate eveniet facilis illo illum impedit + itaque omnis placeat quaerat, quia quidem ratione saepe similique sunt veniam veritatis. +

+
{% endblock %} diff --git a/app/config/routing.yml b/app/config/routing.yml index ff574633..c10226f5 100755 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -52,5 +52,5 @@ fos_user: resource: "@FOSUserBundle/Resources/config/routing/all.xml" # emails tktest_mail: - path: /test-email + path: /admin/test-email defaults: { _controller: AppBundle:Default:email } diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php index 6de036dd..40b16c18 100755 --- a/src/AppBundle/Controller/DefaultController.php +++ b/src/AppBundle/Controller/DefaultController.php @@ -83,9 +83,7 @@ class DefaultController extends Controller { ->setSubject( 'Hello Email' ) ->setFrom( 'test-symfony-tykayn@caisse.ciperbliss.com' ) ->setTo( 'tykayn@gmail.com' ) - ->setBody( $this->renderView( 'default/test-email.html.twig', - - [ 'name' => $name ] ), + ->setBody( $this->renderView( 'default/test-email.html.twig' ), 'text/html' ); $this->get( 'mailer' )->send( $message );