php7-mysql-data/Kapitel_4/Lektion_9/autoload.php

7 lines
171 B
PHP
Raw Permalink Normal View History

2016-08-16 21:20:53 +02:00
<?php
spl_autoload_register(function ($klassenname) {
$klassenpfad = str_replace('\\', '/', $klassenname);
require __DIR__ . '/src/' . $klassenpfad . '.php';
});