PHP Classes

File: Autoloader_src.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   PHP Tree Structure Class   Autoloader_src.php   Download  
File: Autoloader_src.php
Role: Auxiliary script
Content type: text/plain
Description: autoloader script
Class: PHP Tree Structure Class
Manipulate hierarchies of trees with data values
Author: By
Last change:
Date: 6 years ago
Size: 346 bytes
 

Contents

Class file image Download
<?php
   
function Autoloadit_fromSrc_withNS($class){
       
$file=str_replace("\\","/",$class);
       
$path=str_replace("\\","/",dirname(__FILE__))."/src/$file.php";
        if(
file_exists($path)){
            if(require(
$path)) return true;
            else return
false;
        }else{
            return
false;
        }
    }

   
spl_autoload_register ("Autoloadit_fromSrc_withNS");
 
?>