File: xmlSiteMaker/include/functions/ClassLoader.php

Recommend this page to a friend!
  Classes of Ilya Nemihin  >  xmlSiteMaker  >  xmlSiteMaker/include/functions/ClassLoader.php  >  Download  
File: xmlSiteMaker/include/functions/ClassLoader.php
Role: Configuration script
Content type: text/plain
Description: function for load class
Class: xmlSiteMaker
Offline site generator based on XML
Author: By
Last change:
Date: 17 years ago
Size: 260 bytes
 

Contents

Class file image Download
<?php

function load_class( $name ){
  global
$include_root;
 
$filePath = $include_root.$name;
  if (
file_exists( $filePath ) ){
    require_once(
$filePath );
  }
  else{
    echo
'load_class: error load class "'.$name.'"';
    exit;
  }
}

?>


For more information send a message to info at phpclasses dot org.