1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php
spl_autoload_register(function ($class) { if (strpos($class, 'Gettext\\') !== 0) { return; }
$file = __DIR__.str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen('Gettext'))).'.php';
if (is_file($file)) { require_once $file; } });
|