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: 3 years ago
Size: 258 bytes


Class file image Download

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);

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