Location: PHPKode > projects > Open Power Template > tests/Opt/format/singlearray_3.txt
SingleArray format: basic sections.

>>>>templates/test.tpl
<opt:section name="foo">
{$foo.item}
</opt:section>

>>>>data.php

$view->foo = array(0 =>
	array('item' => 'FOO'),
	array('item' => 'BAR')
);
$view->setFormat('foo', 'SingleArray');

>>>>expected.txt
OUTPUT

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