Location: PHPKode > projects > Open Power Template > tests/Opt/format/singlearray_1.txt
Single array format: the "variable" namespace.

>>>>templates/test.tpl
{$variable}
{$global.variable}

>>>>data.php
$view->variable = 'FOO';
Opt_View::assignGlobal('variable', 'BAR');

$view->setFormat('variable', 'SingleArray');
Opt_View::setFormatGlobal('variable', 'SingleArray');

>>>>expected.txt
OUTPUT

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