Location: PHPKode > projects > Open Power Template > tests/Opt/format/spldatastructure_6.txt
SplDatastructure and invalid data

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

>>>>data.php


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

>>>>expected.txt
OUTPUT

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