Location: PHPKode > projects > Open Power Template > tests/Opt/format/objective_3.txt
Objective format: sections.

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

>>>>data.php

$obj1 = new stdClass;
$obj1->item = 'FOO';
$obj2 = new stdClass;
$obj2->item = 'BAR';

$view->foo = new ArrayObject(array(0 =>
	$obj1, $obj2

));
$view->setFormat('foo', 'Objective');

>>>>expected.txt
OUTPUT

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