PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of James Glenlake  >  SmashTemplate  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: An example of how to use SmashTemplate
Class: SmashTemplate
Template that replaces placeholders by PHP code
Author: By
Last change:
Date: 18 years ago
Size: 592 bytes


Class file image Download

require 'template.php';

$tpl = new template('templates');


if (
$tpl->set('heading', 'Link '.$HTTP_GET_VARS['id']);
$tpl->set('content', 'This is link '.$HTTP_GET_VARS['id']);
$tpl->set('heading', 'Main Content');
<p align="center">This is a layout designed by James Glenlake. It includes rounded corners, rollover
links, and lossless resizability.</p>
->set('content', ob_get_contents());

$tpl->set('title', 'The Forest');



For more information send a message to info at phpclasses dot org.