In my HomePresenter, I am trying to send mail.
$latte = new Latte\Engine; // This causes error.
Namespace!
$latte = new \Latte\Engine;
Last edited by looky (2015-03-27 20:07)
Thank you.
getting error Missing template file 'contactEmail.latte
template is in my Homepage folder
I had to specify the full path. Is this the way renderToString works?
->setHtmlBody($latte->renderToString(__DIR__ .'/templates/Homepage/email.latte', $params));