Symfony Load Twig Template For Email -


I found an error in the Symphony jogging template during load.

Do I need to include it: Use Sensio \ Bundle \ FrameworkExtraBundle \ Configuration \ Template; Unable to find the template "CrudBundle: email.html.twig"

[unacceptable]

Unable to find the template "CrudBundle: email.html.twig"

[Twig_Error_Loader]

<" CrudBundle: email.html.twig "(seen in: C: \ xampp \ htdocs \" \ ", \" \ "\ n \ sample \ vendor \ symfony \ symfony \ src \ Symfony \ bridge \ tweg / resourc es / Views / forms).

This is folder structure.

src / Btn / CrudBundle / command / SystemCommand.php : Classroom Location

src / Btn / CrudBundle / resources / views / email Html.twig : Template Location

  class SystemCommand Expands Containerware Commands {protected function configure () {$ this - & gt; Setnam ('cron: email: send') - & gt; Setdition ('verifies accounts'); } Secure function executed (InputInterface $ input, output interface $ output) {$ output-> Drafting ("This is a test"); $ Message = \ swift_message :: newInstance () - & gt; SetSubject ('Hello Email') - & gt; Setfram (exampleample@sample.com ') - & gt; Set -To (exampleample@sample.com ') - & gt; SetBody ($ this-> getContainer () -> get ('templating') - & gt; render ('CrudBundle: email.html.twig', array ('name' = & gt; $ employee - & gt; getUser ()))); $ This- & gt; Mill ('Mailer') - & gt; Send ($ message); }}   

Please try

CrudBundle: : CrudeBundle: email.html.twig for email.html.twig .

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

java - Reaching JTextField in a DocumentListener -

c# - Add Image in a stackpanel based on textbox input -