PHP Classes

File: langdemo.php

Recommend this page to a friend!
  Classes of Valics Lehel   Fast Template   langdemo.php   Download  
File: langdemo.php
Role: Example script
Content type: text/plain
Description: Language File DEMO
Class: Fast Template
Updated revision of CDI Fast Template engine
Author: By
Last change: cosmetics
Date: 19 years ago
Size: 632 bytes
 

Contents

Class file image Download
<?php
// $Id: langdemo.php,v 1.5 2005/02/08 22:18:35 lvalics Exp $
// Language Demo File
   
include_once("en.inc.php");
    include_once(
"cls_fast_template.php");

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

// this will replace any TAG from language file from en.in.php
// as you see here is not made as in oldversions $ft->assign("MENULEFT",$menuleft);
// now you only add to template file, {C_TEXT1} and from language file
// will be replaced $c_text1 value.
 
$ft->multiple_assign("c_");
 
$ft->showDebugInfo(1);
   
$ft->parse("BODY", array("main"));
   
$ft->FastPrint();
?>