PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Philipp v. Criegern   SmartTemplate   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: SmartTemplate
Enterprise Class Template Compiler
Author: By
Last change:
Date: 21 years ago
Size: 523 bytes
 

Contents

Class file image Download
<?php
 
   
require_once "class.smarttemplate.php";
   
$page = new SmartTemplate("example.html");

   
$title = 'SmartTemplate Usage Example';

   
$links = array(
               array(
'TITLE' => 'PHP', 'URL' => 'http://www.php.net' ),
               array(
'TITLE' => 'Apache', 'URL' => 'http://www.apache.org' ),
               array(
'TITLE' => 'MySQL', 'URL' => 'http://www.mysql.com' ),
             );

   
$page->assign( 'TITLE', $title );
   
$page->assign( 'links', $links );

   
$page->output();
 
?>