PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Template Engine Class   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Template Engine Class
Process template files by replacing variable marks
Author: By
Last change: Apply fixes from StyleCI
Date: 5 years ago
Size: 332 bytes
 

Contents

Class file image Download
<?php

require_once 'classes/Template.php';

$theme = new Template();

echo
$theme->SetTemplate('tamplet.html', [

   
'header' => 'PHP Tamplet engine',

   
'heading' => welcome(),

   
'body' => body(),

]);

function
welcome()
{
    return
'WELCOME';
}

function
body()
{
    return
'Hay this is created by malik umer farooq';
}