Location: PHPKode > projects > Open Power Template > tests/Opt/feature/no_oop_2.txt
Check, if disabling the advanced OOP features actually works: "clone" operator.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
{$obj::foo}
{$obj2 is clone $obj}
</opt:root>

>>>>expected.txt
Opt_ExpressionOptionDisabled_Exception

>>>>data.php
$std = new stdClass;
$std->foo = 'bar';

$view->obj = $std;
$this->tpl->advancedOOP = false;
Return current item: Open Power Template