1234567891011121314151617181920 |
- <?php
- spl_autoload_register(static function ($class) {
- if (strpos($class, 'Fpdi\\') === 0) {
- $filename = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 14)) . '.php';
- $fullpath = __DIR__ . DIRECTORY_SEPARATOR . $filename;
- if (is_file($fullpath)) {
-
- require_once $fullpath;
- }
- }
- });
|