[FLOW3-general] Problem with setTemplatePathAndFilename
Kerstin Huppenbauer
kerstin.huppenbauer at die-digiparden.de
Mon Feb 6 18:34:38 CET 2012
Am 06.02.2012 16:25, schrieb "Christian Müller (Kitsunet)":
Hi Christian,
> 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().
>
thanks for the hint. but it's the same - it only works, if the expected
template exists.
thanks
Kerstin
More information about the FLOW3-general
mailing list