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] [Twig_Error_Loader] This is folder structure. Please try CrudBundle: : Unable to find the template "CrudBundle: email.html.twig"
<" CrudBundle: email.html.twig "(seen in: C: \ xampp \ htdocs \" \ ", \" \ "\ n \ sample \ vendor \ symfony \ symfony \ src \ Symfony \ bridge \ tweg / resourc es / Views / forms).
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); }}
CrudeBundle: email.html.twig for email.html.twig .
Comments
Post a Comment