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

    r155 r453  
    1212 */ 
    1313 
    14     error_reporting( E_ALL ); 
    15   
    16    /** 
    17     * requires patErrorManager 
    18     * make sure that it is in your include path 
    19     */ 
    20     require_once( 'pat/patErrorManager.php' ); 
    21      
    22    /** 
    23     * main class 
    24     */ 
    25     require_once '../patTemplate.php'; 
     14    /** 
     15     * Main examples prepend file, needed *only* for the examples framework! 
     16     */ 
     17    include_once 'patExampleGen/prepend.php'; 
     18     
     19    // EXAMPLE START ------------------------------------------------------ 
     20 
     21    /** 
     22     * patErrorManager class 
     23     */ 
     24    require_once $neededFiles['patErrorManager']; 
     25     
     26    /** 
     27     * patTemplate 
     28     */ 
     29    require_once $neededFiles['patTemplate']; 
    2630     
    2731    $tmpl   =   &new patTemplate();