[TYPO3-mvc] If you want to render something with fluid directly
Franz Koch
typo3.RemoveForMessage at elements-net.de
Fri Feb 19 15:45:26 CET 2010
Hi,
> /**
> * Returns a view which will be sent via mail.
> *
> * @return Tx_Fluid_View_TemplateView Template view.
> */
> protected function getCreateMailView() {
> $view = $this->objectManager->getObject('Tx_Fluid_View_TemplateView');
> $controllerContext = $this->buildControllerContext();
> $view->setControllerContext($controllerContext);
>
> // Template Path Override
> $view->setTemplatePathAndFilename($this->registerMail);
>
> if (method_exists($view, 'injectSettings')) {
> $view->injectSettings($this->settings);
> }
> $view->initializeView(); // In FLOW3, solved through Object Lifecycle
> methods, we need to call it explicitely
> $view->assign('settings', $this->settings); // same with settings
> injection.
> return $view;
> }
are you sending HTML mails or plaintext? If plaintext, where do you set
the desired format for FLUID?
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list