PHP Classes

File: demo/index.php

Recommend this page to a friend!
  Classes of Marco Afonso   Mask   demo/index.php   Download  
File: demo/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Mask
Trait to process templates with class functions
Author: By
Last change: Update of demo/index.php
Date: 1 year ago
Size: 380 bytes
 

Contents

Class file image Download
<?php

error_reporting
(E_ALL);
ini_set('display_errors', 1);

// Load dependencies
require_once '../vendor/autoload.php';

// Tell what we will use
use Taviroquai\Mask\Mask;

// Set configuration
Mask::$templateCachePath = './cache';
Mask::$templatePath = './templates';

// Load demo
require_once 'DemoView.php';

// Run demo
$view = new LayoutView();
echo
$view->mask('layout');