data-store.php

Basic data store utility -- unfinished
git clone git://git.finwo.net/lib/data-store.php
Log | Files | Refs

autoload.php (431B)


      1 <?php
      2 
      3 if (!defined('APPROOT')) define('APPROOT', dirname(__DIR__));
      4 if (!defined('DS'))      define('DS'     , DIRECTORY_SEPARATOR);
      5 
      6 // Simple PSR-0 autoloader
      7 spl_autoload_register(function( $className ) {
      8     $path  = __DIR__ . DIRECTORY_SEPARATOR;
      9     $path .= str_replace("\\", DIRECTORY_SEPARATOR, $className);
     10     $path .= '.php';
     11     if ( file_exists($path) && is_readable($path) ) {
     12         include_once $path;
     13     }
     14 });