Show
Ignore:
Timestamp:
05/30/07 14:58:43 (2 years ago)
Author:
gerd
Message:

Added minimal "patExampleGen" which allows to configure include paths

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/examples/example_cache_template_file.php

    r396 r453  
    1414 * @link        http://www.php-tools.net 
    1515 */ 
    16     error_reporting( E_ALL ); 
    17   
    18    /** 
    19     * requires patErrorManager 
    20     * make sure that it is in your include path 
    21     */ 
    22     require_once( 'pat/patErrorManager.php' ); 
    23      
    24    /** 
    25     * main class 
    26     */ 
    27     require_once '../patTemplate.php'; 
    28      
     16    /** 
     17     * Main examples prepend file, needed *only* for the examples framework! 
     18     */ 
     19    include_once 'patExampleGen/prepend.php'; 
     20 
     21    // EXAMPLE START ------------------------------------------------------ 
     22 
     23    /** 
     24     * patErrorManager class 
     25     */ 
     26    require_once $neededFiles['patErrorManager']; 
     27 
     28    /** 
     29     * patTemplate 
     30     */ 
     31    require_once $neededFiles['patTemplate']; 
     32 
     33 
    2934    $tmpl   =   &new patTemplate(); 
    3035    $tmpl->setRoot( 'templates' );