开发者

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

开发者 https://www.devze.com 2023-01-19 11:35 出处:网络
i have retrieved a group of elements using a propel criteria. Now are at $S开发者_如何学Goedi18ns

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

精彩评论

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