Forums / Developer / eZCache::fetchList()

eZCache::fetchList()

Author Message

Torbjørn L.

Monday 03 January 2011 5:07:45 am

Anybody knows what this does and why it makes my template stop outputting?

It seems like this line:

{eZCache::fetchList()}

stops the template from displaying any more content from my class.

I'm modifying an existing template, and this line was in it (made by some developers) and I'm not sure what it does... and why it's there...

The ez.docs doesn't seem to give me a lot of info...

any thoughts?

Nicolas Pastorino

Monday 03 January 2011 6:20:51 am

"
{eZCache::fetchList()}
"

Hi Torbjørn,

This is not a valid template language statement at all, explaining the error you get. One way of making sure this is triggering an error is to enable the debug output in the page. You can do so by following the instructions given there : http://share.ez.no/forums/developer/feedback-form-template/comment64619

Should you need the result of this call in your template, encapsulate it in a template operator : http://share.ez.no/learn/ez-publish/an-introduction-to-developing-ez-publish-extensions/(page)/10

Let us know how things go,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Torbjørn L.

Tuesday 04 January 2011 1:12:14 am

Hi,

I don't need it, or at least I think I don't need it. I'm just wondering why somebody put it there and what it does....

So what you are saying is that this statement should not be in any template, and explains why further class extractions in my template fails? and in short - it does nothing else but disrupt the template?

Cheers.

Nicolas Pastorino

Tuesday 04 January 2011 1:17:53 am

"

and in short - it does nothing else but disrupt the template?

"

Correct :)

You can safely remove this.

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye