25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
<?php
|
|
spl_autoload_register(function ($class) {
|
|
// Uncomment for debugging
|
|
//echo 'Looking for class ' . $class . "\n";
|
|
|
|
$file = __DIR__ . DIRECTORY_SEPARATOR . str_replace('\\', '/', $class) . '.php';
|
|
|
|
if (file_exists($file)) {
|
|
require($file);
|
|
}
|
|
}); |