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_api_readtemplatesfrominput.php

    r155 r453  
    1515 */ 
    1616  
    17     error_reporting( E_ALL ); 
     17    /** 
     18     * Main examples prepend file, needed *only* for the examples framework! 
     19     */ 
     20    include_once 'patExampleGen/prepend.php'; 
    1821 
    19    /** 
    20     * requires patErrorManager 
    21     * make sure that it is in your include path 
    22     */ 
    23     require_once( 'pat/patErrorManager.php' ); 
    24      
    25    /** 
    26     * main class 
    27     */ 
    28     require_once '../patTemplate.php'; 
     22    // EXAMPLE START ------------------------------------------------------ 
     23 
     24    /** 
     25     * patErrorManager class 
     26     */ 
     27    require_once $neededFiles['patErrorManager']; 
     28 
     29    /** 
     30     * patTemplate 
     31     */ 
     32    require_once $neededFiles['patTemplate']; 
     33 
     34 
    2935     
    3036    $tmpl   =   &new patTemplate();