Location: PHPKode > projects > Open Power Template > tests/Opt/format/custom_assign_2.txt
Testing the custom assignments that are possible with data formats.

>>>>templates/test.tpl
{$smallObj.foo is 'goo'}
{$smallObj.foo}

>>>>data.php
Opl_Registry::register('data', array('smallObj' => new smallClass));
$view->setFormat('smallObj', 'Test');

>>>>expected.txt
OUTPUT

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