PHP Classes
elePHPant
Icontem

File: example7.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 7 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() ;

?>