PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas   Haanga   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Haanga
Template engine to process Django style templates
Author: By
Last change:
Date: 5 years ago
Size: 497 bytes
 

Contents

Class file image Download
<?php

require __DIR__ . '/../vendor/autoload.php';

$config = array(
   
'cache_dir' => __DIR__ . '/tmp/',
   
'autoload' => true,
   
'template_dir' => __DIR__,
   
'debug' => TRUE,
   
'use_hash_filename' => FALSE,
   
'compiler' => array(
       
'allow_exec' => TRUE,
       
'global' => array('test_global', 'global1'),
    )
);

Haanga::Configure($config);

date_default_timezone_set('UTC');

@
mkdir(__DIR__ . "/tmp/");
foreach (
glob(__DIR__ . "/tmp/*/*") as $file) {
    @
unlink($file);
}