Class ‘App\Presenters\Latte\Engine’ not found

Notice: This thread is very old.
frocco
Member | 46
+
0
-

In my HomePresenter, I am trying to send mail.

$latte = new Latte\Engine; // This causes error.
looky
Member | 99
+
0
-

Namespace!

$latte = new \Latte\Engine;

Last edited by looky (2015-03-27 20:07)

frocco
Member | 46
+
0
-

Thank you.

getting error Missing template file 'contactEmail.latte

template is in my Homepage folder

frocco
Member | 46
+
0
-

I had to specify the full path. Is this the way renderToString works?

->setHtmlBody($latte->renderToString(__DIR__ .'/templates/Homepage/email.latte', $params));