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:
Date: 4 years 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');


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