PHP Classes

File: example1.php

Recommend this page to a friend!
  Classes of Richard Munroe   dm.IS Layout   example1.php   Download  
File: example1.php
Role: Example script
Content type: text/plain
Description: example
Class: dm.IS Layout
Fork of the IS layout template engine
Author: By
Last change:
Date: 19 years ago
Size: 497 bytes
 

Contents

Class file image Download
<?php
require_once "class.IS_Layout.php";

// See the example1.htm for better understanding
$lay = new IS_Layout('example1.htm');

// Another way to load an html file:
// $lay = new IS_Layout;
// if(!$lay->openFile('example1.htm'))
// echo 'Error openning the file'
//else
// echo 'File succesfully opened';

$array=array(
array(
1,2,3),
array(
4,5,6),
array(
7,8,9)
);

// Transfer the $arrray to html code
$lay->loop_replace('identification',$array);

$lay->display();

?>