Login   Register  
PHP Classes
elePHPant
Icontem

File: fastwrite.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  >  fastwrite.php  >  Download  
File: fastwrite.php
Role: Example script
Content type: text/plain
Description: Fast Write function example
Class: Fast Template
Updated revision of CDI Fast Template engine
Author: By
Last change: Cosmetics
Date: 9 years ago
Size: 520 bytes
 

Contents

Class file image Download
<?php
// $Id: fastwrite.php,v 1.10 2004/12/29 23:27:53 lvalics Exp $
// Example of FastWrite command.
    
include_once("en.inc.php");
    include_once(
"cls_fast_template.php");

    
$ft = new FastTemplate('./templates');
    
$ft->define(array("main"=>"language_fastwrite.html"));

    
$outputfile "tmp/" .date("H_i_s").".html";
    
$ft->assign("URL",$outputfile);
    
$ft->multiple_assign("c_");
      
$ft->showDebugInfo(1);
    
$ft->parse("mainContent""main");
    
$ft->FastWrite("mainContent",$outputfile);
    
$ft->FastPrint();
?>