PHP Classes

File: example7.php

Recommend this page to a friend!
  Classes of Richard Munroe   dm.IS Layout   example7.php   Download  
File: example7.php
Role: Example script
Content type: text/plain
Description: Example of nested loop replacement blocks
Class: dm.IS Layout
Fork of the IS layout template engine
Author: By
Last change:
Date: 16 years ago
Size: 362 bytes
 

Contents

Class file image Download
<?php

include_once('class.IS_Layout.php') ;

$l = new IS_Layout('example7.html') ;

$x = array(0, 1, 2) ;
$y =
    array(
        array(
10, 11, 12),
        array(
20, 21, 22),
        array(
30, 31, 32)) ;

$l->loop_replace('row', $x) ;

foreach (
$x as $a)
{
   
$id = sprintf('column%d', $a) ;
   
$l->loop_replace($id, $y[$a]) ;

}

echo
$l->toRawHtml() ;

?>