Bonjour,
j'ai configué AppKernel , config.yml et config_dev.yml , tout ça c'est copier coller

concernant le controlleur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class MailController extends Controller
{
    public function indexAction()
    {
       $message = \Swift_Message::newInstance()     // we create a new instance of the Swift_Message class
        ->setSubject('Symfony Email')     // we configure the title
        ->setFrom('send@example.com')     // we configure the sender
        ->setTo('recipient@example.com')     // we configure the recipient
        ->setContentType("text/html")
        ->setBody($this->renderView('MyAppEspritBundle:Mail:email.html.twig'));
         // and we pass the $name variable to the text template which serves as a body of the message
 
        $this->get('mailer')->send($message);     // then we send the message.
      return $this->render('MyAppEspritBundle:Default:administration.html.twig');
    }
 
}
je recois un mail qui contient exactement la vue de "email.html.twig" .
Ma question : es -ce que je peux creer une vue qui contient un input pour le message et Sans creer une nouvelle entité ?