PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Yerfry Ramirez  >  PHP OOP Template Engine  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Index page
Class: PHP OOP Template Engine
Setup and process template with a fluent interface
Author: By
Last change: None
Date: 6 years ago
Size: 352 bytes
 

Contents

Class file image Download
<?php
require_once 'config.php';
require_once
'Classes/Class.Template.php';

$Template = new Template();

$Template->setFile('test.html')
    ->
assign('Variable', 'mhm')
->
Output();


/** You can also do
    $Template->assign('Variable', 'mhm');

    $Template->setFile('test.html');
    $Template->Output(); // Or $Template->setFile('test.html')->Output();
**/
?>

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