From 337654875772bed0b2c11a40cf8f6daa40f48bb3 Mon Sep 17 00:00:00 2001 From: Aleksandr-ru Date: Wed, 5 Apr 2017 13:49:19 +0300 Subject: [PATCH] chaining --- tests/recursion.html | 12 ++++++++++-- tests/recursion.php | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/recursion.html b/tests/recursion.html index 25df17b..d3e628e 100644 --- a/tests/recursion.html +++ b/tests/recursion.html @@ -3,7 +3,10 @@ TemplateObject – recursion TEST - + +

Refresh page to see different results

+
+ +
-

Refresh page to see different results

+ + + [block-2] + + \ No newline at end of file diff --git a/tests/recursion.php b/tests/recursion.php index 1433d1c..2671508 100644 --- a/tests/recursion.php +++ b/tests/recursion.php @@ -5,6 +5,8 @@ define('MAX_LEVEL', 5); recursion($to); +$to->setBlock('block2')->setBlock('block2')->setBlock('block2'); + $to->showOutput(); function recursion(&$tmpl, $level = 0)