PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Aleksandar Zivanovic   STPL   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Entry file for example.
Class: STPL
Render templates using PHP code scripts
Author: By
Last change:
Date: 5 years ago
Size: 258 bytes
 

Contents

Class file image Download
<?php

require_once __DIR__ . '/STPL.php';

$template = __DIR__ . '/template/pages/welcome.php';

$data = [
   
'user' => ['firstName' => 'Aleksandar', 'lastName' => 'Zivanovic'],
   
'queryTime' => microtime(true),
];

STPL::Render($template, $data, false);