Location: PHPKode > scripts > Class Loader > class-loader/example1.php
<?php

include_once('ClassLoader.class.php');

$classLoader =& new ClassLoader();

// To this example works you must create the following folders 
$classLoader->addPath(dirname(__FILE__).'/includes', 1);
$classLoader->addPath(dirname(__FILE__).'/admin', 1);
$classLoader->start();

$classLoader->includeClass('MyClass.class.php');

echo "<pre>";
print_r($classLoader->_classes);
echo "</pre>";

?>
Return current item: Class Loader