Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 372 Bytes
<?php
function loaderTestAutoloader($sClass)
{
$sLibPath = __DIR__.'/../lib/';
$sClassFile = str_replace('\\',DIRECTORY_SEPARATOR,$sClass).'.php';
$sClassPath = $sLibPath.$sClassFile;
if (file_exists($sClassPath)) {
require($sClassPath);
}
}
chdir(__DIR__.'/..');
spl_autoload_register('loaderTestAutoloader');
error_reporting(-1);
ini_set('display_errors', 1);
Jump to Line
Something went wrong with that request. Please try again.