views:

12

answers:

1

Hi,

i have retrieved a group of elements using a propel criteria. Now are at $Sedi18ns

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

A: 

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.

Jan Fabry