PHP Classes

File: examples/example1.php

Recommend this page to a friend!
  Classes of Full name   x64Template Engine   examples/example1.php   Download  
File: examples/example1.php
Role: Example script
Content type: text/plain
Description: Example
Class: x64Template Engine
Template engine extensible with plug-in classes
Author: By
Last change: Changed include paths to reflect folder change
Date: 18 years ago
Size: 526 bytes
 

Contents

Class file image Download
<?php

require_once("../x64Template.php");

//
//We start the object
//
$tpl=new x64Template();

//
//We set some values
//
$tpl->set("title","x64Template - First example");
$tpl->set("keywords","x64Template, first example");
$tpl->set("description","x64Template - First example showing how to use the class");
$tpl->set("author","Atomo64");
$tpl->set("robots","None");
$tpl->set("message","Hi there!, how do you like the class?");

//
//Now we tell the class to parse a file
//

die($tpl->fetch("templates/example1.tpl"));
?>