Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
<?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);
|
|
}
|
|
}); |