PHP Classes

File: example_nocompilerstop.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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: 8 years ago
Size: 548 bytes


Class file image Download
     * Load class

     * 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

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