You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<?php
|
|
spl_autoload_register(function ($class) {
|
|
if ( 0 === strpos( $class, 'Grafika' ) ) { // Autoload our packages only
|
|
|
|
$base_dir = __DIR__ . '/';
|
|
$file = str_replace('\\', '/', $base_dir . $class . '.php'); // Change \ to /
|
|
|
|
require_once $file;
|
|
}
|
|
}); |