Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/section_4.txt
This test checks the manual manipulation of section data.

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<opt:root>
<opt:section name="sect1">
<opt:section name="sect2" parent="">
{$sect1.value} {$sect2.value}
</opt:section>
</opt:section>
</opt:root>

>>>>data.php
$view->sect1 = array(0 =>
	array('value' => ':sect1-value1:'),
	array('value' => ':sect1-value2:')
);
$view->sect2 = array(0 =>
	array('value' => ':sect2-value1:'),
	array('value' => ':sect2-value2:')
);

>>>>expected.txt
OUTPUT

>>>>result.txt
:sect1-value1: :sect2-value1:
:sect1-value1: :sect2-value2:
:sect1-value2: :sect2-value1:
:sect1-value2: :sect2-value2:
Return current item: Open Power Template