Location: PHPKode > projects > Open Power Template > tests/Opt/format/array_3.txt
Array format and assinging the values to the section variables.

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

>>>>data.php

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

>>>>expected.txt
OUTPUT

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