[TYPO3] Template File Reading Problem

Dmitry Martynenko dima at realt.by
Fri Jun 6 16:55:20 CEST 2008


Hi Sancar,

SS> Hi All, I got questions about template file reading.

SS> // Not working code
SS> $this->templateFileContent   =
SS> $this->cObj->fileResource($this->conf['template_file']);

You pass wrong params, read about fileResource in TSRef

SS> // Working code
$this->>templateFileContent   = 
SS> file_get_contents($this->conf['template_file']);
SS> Does anybody have a clue about this.

Is $this->conf['template_file'] absolute path?
Use t3lib_div::getURL()

-- 
Dmitry Martynenko
Developer

Web: http://realt.by



More information about the TYPO3-english mailing list