Login   Register  
PHP Classes
elePHPant
Icontem

File: example1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Daniel Chaves  >  IS Layout  >  example1.php  >  Download  
File: example1.php
Role: Example script
Content type: text/plain
Description: Example 1
Class: IS Layout
Template engine that replaces place holder values
Author: By
Last change:
Date: 2004-03-02 02:53
Size: 493 bytes
 

Contents

Class file image Download
<?php
require_once "../islayout.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();

?>