[TYPO3-mvc] If you want to render something with fluid directly

Nils Blattner nb at cabag.ch
Fri Feb 19 16:32:03 CET 2010


Am 19.02.10 15:45, schrieb Franz Koch:
> 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?
>

I don't explicitly set the format, but via the controller context, I 
suppose I get the html-format implicitly.
Thus my template is .html.
However I send my mails plaintext, which is not exactly pretty, but 
lacking good documentation it was what I found.


More information about the TYPO3-project-typo3v4mvc mailing list