[TYPO3-mvc] fluid as an email template
Manfred Rutschmann
manfred.rutschmann at revier.de
Wed Dec 1 06:15:30 CET 2010
Am Tue, 30 Nov 2010 21:16:00 +0100 schrieb Andreas Lappe:
> $view = t3lib_div::makeInstance('Tx_Fluid_View_StandaloneView');
> $view->setTemplatePathAndFilename(t3lib_extMgm::extPath('khorder').'/Resources/Private/Templates/mailService/HtmlMail.html');
> $view->assign('customer', $customer);
> $mailContent = $view->render();:
Nice! I use always a controller action and the associated templatefile, wit
$this->view->render() i grab the content and after the mail is send i used
the $this->redirect method to call the controller that shows me the page
"mail is send" or someone else.
Regards Manne
More information about the TYPO3-project-typo3v4mvc
mailing list