--TEST--
Template Test: looping.html
--FILE--
array(1,2,3,4)));
--EXPECTF--
===Compiling looping.html===
===Compiled file: looping.html===
Looping
a loop options['strict'] || (is_array($t->loop) || is_object($t->loop))) foreach($t->loop as $a) {?>
a loop with 2 vars options['strict'] || (is_array($t->loop) || is_object($t->loop))) foreach($t->loop as $a => $b) {?>
,
Bug #84
options['strict'] || (is_array($t->list) || is_object($t->list))) foreach($t->list as $i) {?>
options['strict'] || (isset($t) && method_exists($t,'method'))) echo htmlspecialchars($t->method($i));?>
options['strict'] || (is_array($t->list) || is_object($t->list))) foreach($t->list as $i => $j) {?>
:
options['strict'] || (is_array($t->xyz) || is_object($t->xyz))) foreach($t->xyz as $abcd => $def) {?>
, options['strict'] || (isset($t) && method_exists($t,'test'))) echo htmlspecialchars($t->test($def));?> |
HTML tags example using foreach="loop,a,b" or the tr
options['strict'] || (is_array($t->loop) || is_object($t->loop))) foreach($t->loop as $a => $b) {?>
|
|
HTML tags example using foreach="loop,a" or the tr using a highlight class.
options['strict'] || (is_array($t->loop) || is_object($t->loop))) foreach($t->loop as $a) {?>
a is |
showtext) {?>text);?> |
showtext) {?>price,2,'.',',');?> |
HTML tags example using foreach="loop,a,b" or the tr
options['strict'] || (is_array($t->loop) || is_object($t->loop))) foreach($t->loop as $a => $b) {?>
options['strict'] || (is_array($b) || is_object($b))) foreach($b as $c => $d) {?> |
Looping in CDATA
Dont forget that php strips line breaks!
options['strict'] || (is_array($t->list) || is_object($t->list))) foreach($t->list as $i => $j) {?>
:
]]>
===With data file: looping.html===
Looping
a loop
a loop with 2 vars
Bug #84
0:1 1:2 2:3 3:4
HTML tags example using foreach="loop,a,b" or the tr
HTML tags example using foreach="loop,a" or the tr using a highlight class.
HTML tags example using foreach="loop,a,b" or the tr
Looping in CDATA
Dont forget that php strips line breaks!