Login   Register  
PHP Classes
elePHPant
Icontem

File: example_nocompilerstop.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Kalle Sommer Nielsen  >  Template Processor  >  example_nocompilerstop.php  >  Download  
File: example_nocompilerstop.php
Role: Example script
Content type: text/plain
Description: Exampile file - No compiler stop option
Class: Template Processor
Template processing engine
Author: By
Last change: Grammar
Date: 7 years ago
Size: 548 bytes
 

Contents

Class file image Download
<?php
    
/**
     * Load class
     */
    
require_once("./template.class.php");

    
/**
     * Construct
     */
    
$temp = new Template(Array('nocompilerstop' => true));

    
/**
     * Setting the option 'nocompilerstop' as of v1.0.2 allows 
     * the programmer to execute code after Template::compile()
     * as been executed, which can be useful from time to times
     */

    
$temp->addcache('<h3>Headline missing end tag');

    
/**
     * Compile
     */
    
$temp->compile();

    
/**
     * Print out the rest
     */
    
echo("</h3><p />... But now it has one ;)");
?>