* @package patTemplate * @subpackage Examples * @link http://www.php-tools.net * @see patTemplate::freeTemplate() */ /** * Main examples prepend file, needed *only* for the examples framework! */ include_once 'patExampleGen/prepend.php'; // EXAMPLE START ------------------------------------------------------ /** * patErrorManager class */ require_once $neededFiles['patErrorManager']; /** * patTemplate */ require_once $neededFiles['patTemplate']; patErrorManager::setErrorHandling(E_ALL, 'verbose'); $tmpl = &new patTemplate(); $tmpl->setRoot( 'templates' ); $tmpl->readTemplatesFromInput( 'example_api_freetemplate.tmpl' ); echo "By freeing the template, we may load it again without any conflicts
"; $tmpl->freeTemplate( 'root', true ); $tmpl->readTemplatesFromInput( 'example_api_freetemplate.tmpl' ); ?>