Location: PHPKode > projects > Open Power Template > tests/Opt/format/spldatastructure_9.txt
After iterating in the descending order, the format goes back
to the previous settings.
>>>>templates/test.tpl
<opt:root>
<opt:section name="foo" order="desc">
{$foo.item}
</opt:section>
NEXT:
<opt:section name="foo">
{$foo.item}
</opt:section>
</opt:root>

>>>>data.php

$spl1 = new SplDoublyLinkedList;
$spl1->push(array('item' => 'FOO'));
$spl1->push(array('item' => 'BAR'));

$view->foo = $spl1;
$view->setFormat('foo', 'SplDatastructure');

>>>>expected.txt
OUTPUT

>>>>result.txt
BAR
FOO
NEXT:
FOO
BAR
Return current item: Open Power Template