PHP Classes

File: autoload.php

Recommend this page to a friend!
  Classes of Thiago Luiz Alves  >  PHP Dependency Injector  >  autoload.php  >  Download  
File: autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Class loader
Class: PHP Dependency Injector
Container to inject dependencies between classes
Author: By
Last change:
Date: 8 years ago
Size: 292 bytes


Class file image Download

 * Basic Class Loader
 * @param String $class the qualified className inclusing its namespace
function __autoload($class) {

$file = str_replace("\\", DIRECTORY_SEPARATOR, $class . ".php");

    if (
is_file($file)) {


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