We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Read template into variable

Hi, cant read volt template into variable?

Smarty analog - $smarty->fetch();

Thanks.

Sure you can.

Depending on type of View component you're using, in this example using Simple view:

$bufferedContent = $this->view->render('email/template.volt');

P.S. View has also method to fetch content getContent().