PHP Classes
elePHPant
Icontem

File: xmlSiteMaker/include/functions/ClassLoader.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 12 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;
  }
}

?>