PHP Classes

File: demo/RUNME.php

Recommend this page to a friend!
  Classes of Sheldon Kennedy   TinyBinder   demo/RUNME.php   Download  
File: demo/RUNME.php
Role: Example script
Content type: text/plain
Description: Example script
Class: TinyBinder
Replace template variables with function results
Author: By
Last change:
Date: 8 months ago
Size: 222 bytes
 

Contents

Class file image Download
<?php

include '../src/TinyBinder.php';

$tinyBinder = new TinyBinder('template.html');
$tinyBinder->addAsset('pageName', 'Demo Page');
$tinyBinder->addAsset('heading', '<h1>Demo Page</h1>');

echo
$tinyBinder->getHtml();