- Added global compiler option (useful for meneame templates)
[haanga.git] / tests / tmp / assert_templates_empty_loop.tpl.php
blob3c6b6a7edfb2b0160f933ebf27222bd467ab0b7d
1 <?php
2 /* Generated from /home/crodas/projects/playground/haanga/tests/assert_templates/empty_loop.tpl */
3 function haanga_b81b868120adb871819ede8f37c652aea054b73d($vars, $return=FALSE, $blocks=array())
5 extract($vars);
6 if ($return == TRUE) {
7 ob_start();
9 if (count($users) == 0) {
10 echo "\n Else\n";
11 } else {
12 $forcounter1_1 = 1;
13 $forcounter0_1 = 0;
14 $psize_1 = count($users);
15 $islast_1 = $forcounter1_1 == $psize_1;
16 foreach ($users as $id => $user) {
17 echo "\n ".$islast_1."\n ".$forcounter0_1."\n Inside loop\n";
18 $forcounter1_1 = $forcounter1_1 + 1;
19 $forcounter0_1 = $forcounter0_1 + 1;
20 $islast_1 = $forcounter1_1 == $psize_1;
23 echo "\n";
24 if ($return == TRUE) {
25 return ob_get_clean();