[FLOW3-general] Problem with setTemplatePathAndFilename

"Christian Müller (Kitsunet)" christian.mueller at typo3.org
Mon Feb 6 16:25:16 CET 2012


On 06/02/12 16:15, Kerstin Huppenbauer wrote:
> Hi,
>
> i have some templates which are used by serveral controllers.
> so i created a new template-folder "Default" and put these templates
> into it.
>
> in my controller i tried to set the path to this Default-Folder through
> $this->view->setTemplatePathAndFilename('pathtodefaultfolder');

Where exactly did you try it? In the action that needs the view it is 
too late. Try overriding initializeView().

Cheers,
Christian


More information about the FLOW3-general mailing list