Login   Register  
PHP Classes
elePHPant
Icontem

File: ex-include.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Valics Lehel  >  Fast Template  >  ex-include.php  >  Download  
File: ex-include.php
Role: Example script
Content type: text/plain
Description: INCLUDE example script
Class: Fast Template
Updated revision of CDI Fast Template engine
Author: By
Last change: small changes
Date: 8 years ago
Size: 505 bytes
 

Contents

Class file image Download
<?php
    
/** $Id: ex-include.php,v 1.2 2005/06/15 19:37:15 vadim Exp $
    * INCLUDE statement example
    * start: Tue Mar 22 19:59:20 EET 2005 @791 /Internet Time/
    * @author Voituk Vadim <voituk###asg.kiev.ua>
    */
    
require_once('cls_fast_template.php');
    
$Template = new FastTemplate('templates/');
    
$Template->define('main''include1.html');
    
$Template->assign(array(
        
'TEMPLATES_DIR' => 'templates',
        
'USER_IP' => $_SERVER['REMOTE_ADDR']
    ));
    print 
$Template->parse_and_return('main');
?>