[TYPO3-core] RFC: #11216: getModuleTemplate is prepended with backPath always

Martin Kutschker masi-no at spam-typo3.org
Fri May 29 12:04:59 CEST 2009


Steffen Kamper schrieb:
> Hi Masi,
> 
> Martin Kutschker schrieb:
>> Steffen Kamper schrieb:
>>> Hi,
>>>
>>> This is SVN patch request.
>>>
>>> Type: Bugfix
>>>
>>> Branches: trunk
>>>
>>> BT reference: http://bugs.typo3.org/view.php?id=11216
>>>
>>> Problem:
>>> when writing BE module extension you may have your template in your
>>> extension directory. For now the $filename is always prepended with
>>> backpath.
>>>
>>> Solution:
>>> use t3lib_div::getFileAbsFileName which allows using this syntax:
>>> $this->doc->setModuleTemplate('EXT:myext/mod1/mod_template.html');
>>
>> Please use t3lib_div::getFileAbsFileName($filename, true, true);
>>
> 
> ok, then kickstarter has to be changed.

Hm, then allow absolute names, but change the kickstarter anyway. Using
absoulte names was a bad idea from the start.

> So i'm unsure and would tend to allow abs path for the rare case, but
> would comment it in the function

"commend" or "recommend" ;)

Masi


More information about the TYPO3-team-core mailing list