Login   Register  
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: 2007-12-03 13:10
Size: 362 bytes
 

Contents

Class file image Download
<?php

include_once('class.IS_Layout.php') ;

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

$x = array(012) ;
$y =
    array(
        array(
101112),
        array(
202122),
        array(
303132)) ;

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

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

}

echo 
$l->toRawHtml() ;

?>