[TYPO3-mvc] 3 questions reagarding fluid and extbase

Franz Koch typo3.RemoveForMessage at elements-net.de
Tue Nov 30 17:22:51 CET 2010


Hey Kay,

> Thanks, currently i solved it with the following code in the action:
>
> if($this->settings['templateFile']!='') {
> 	if(is_file($this->settings['templateFile'])) {
> 		$this->view->setTemplatePathAndFilename(
> 			$this->settings['templateFile']
> 		);
> 	}
> }
>
> While i use a flexform value, if the're more actions i would use the
> above mentioned way.

AFAIK this will only work if you have a default template available for 
the currently called action - if there wouldn't be a default template, 
extbase will initialize a emptyView object instead of a fluidView object 
and your solution won't work anymore. Just keep that in mind if you ever 
have any issues with something like that.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list