开发者

symfony 1.4/propel: problems trying to the previous element of a group of elements retrieved using a criteria

i have retrieved a group of elements using a propel criteria. Now are at $S开发者_如何学Goedi18ns

When i use this:

$SediI18ns->prev()

I get:

( ! ) Fatal error: Call to undefined method sfOutputEscaperArrayDecorator::prev()

No problems when i use next().

Any idea?

Regards

Javi


sfOutputEscaperArrayDecorator has a next() method, as defined by the Iterator interface, but no prev() method. You can access them as arrays, and use numeric indexes, or just save the previous object in a variable and use that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜