- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
<?php
class autoLoad
{
const dir = 'class';
const ext = '.php';
private static $class;
public static function load($class)
{
self::$class = $class;
include self::dir . DIRECTORY_SEPARATOR . self::$class . self::ext;
}
}
spl_autoload_register(array('autoload', 'load'));