PHP Classes

File: test/03-literal-code/reserved.php

Recommend this page to a friend!
  Classes of Nikos M.   Contemplate   test/03-literal-code/reserved.php   Download  
File: test/03-literal-code/reserved.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Contemplate
Template engine that provides programming controls
Author: By
Last change:
Date: 1 year ago
Size: 382 bytes
 

Contents

Class file image Download
<?php
define
('ABSPATH', dirname(__FILE__));
function
echo_($s)
{
    echo
$s . PHP_EOL;
}
include
dirname(dirname(ABSPATH)).'/src/php/Contemplate.php';

// global ctx
Contemplate::setCacheDir(ABSPATH);
Contemplate::setCacheMode(Contemplate::CACHE_TO_DISK_AUTOUPDATE);
Contemplate::add(array('reserved' => ABSPATH . '/reserved.html'));

echo_(Contemplate::tpl('reserved', array()));