[TYPO3] cObj is not there.....
bedlamhotel at gmail.com
Thu Mar 16 23:20:30 CET 2006
On 3/16/06, Marcel Trichét <matri at freenet.fr> wrote:
> Hi all,
> just trying a little extension stuff.
> In my main function I have:
> $code = $this->cObj->fileResource($this->conf['templateFile']);
> But when I debug code its _always_ empty!
> $conf templatefile has the right file init. it also exists.
> # this gives me the filename, that OK!
> # this gives me debug, thats not OK!
> Seems like no cObj is present?!?!
> Any suggetsions what I am missing?
A quick look at the TSref suggests that your syntax is wrong .
The example given in the TSref goes like this:
page.10 = FILE
page.10.file = fileadmin/gs/gs.html
...which makes me think that your code should be something more like:
$code = $this->cObj->FILE($this->conf['templateFile']);
...especially since fileResource is not a cObject.
More information about the TYPO3-english