[TYPO3] Template File Reading Problem

Dmitry Dulepov [typo3] dmitry at typo3.org
Fri Jun 6 15:05:23 CEST 2008


Sancar Saran wrote:
> // Not working code
> $this->templateFileContent   = 
> $this->cObj->fileResource($this->conf['template_file']);
> 
> // Working code
> $this->templateFileContent   = 
> file_get_contents($this->conf['template_file']);
> 
> Does anybody have a clue about this.

You got absolute path in $this->conf['template_file']. Should be relative to TYPO3 installation directory.

-- 
Dmitry Dulepov
Learn more about TYPO3: http://typo3bloke.net/


More information about the TYPO3-english mailing list