[TYPO3-50-general] Fluid: Caching and additionalArguments

Peter Beernink p.beernink at drecomm.nl
Sat Mar 7 09:48:04 CET 2009


Hi Bastian,

On Fri, 2009-03-06 at 20:27 +0100, Bastian Waidelich wrote:
> [...]
> 
> From your stack trace I could see that you've created a custom view 
> class. Probably it extends F3\Fluid\View\TemplateView right?

Yes that is correct. I think this was due to the fact that I first did a
manual return to check if the view was working at all, and later
modified it to extend the F3\Fluid\View\TemplateView to be able to use
Fluid.

> 
> FLOW3 injects the cache to F3\Fluid\View\TemplateView not to your custom 
> view.
> 
> For now, there are two ways to get around this:
> 
> 1. Don't use a custom view, but add following field to your controller:
> protected $viewObjectName = 'F3\Fluid\View\TemplateView';

As I didn't have any code in it, I used this approached and it worked
instantly.
I think I should read some documentation about this before continuing
based on trial and error :)

Thanks for your help.

Peter



More information about the TYPO3-project-5_0-general mailing list