Location: PHPKode > scripts > Tracker > tracker/example.php

require_once dirname(__FILE__) .'/tracker.php';

Tracker::$root_folder = dirname(__FILE__) . "/"; // root of search folders
Tracker::$search_folders = array("classes","modules","plugins"); // look for classes in these folders
Tracker::$denied_folders = array("some_system_folder","some_plugin_folder"); // this can be an empty array

Tracker::load(); // scans the filesystem or loadss classes' location

// __autoload is called, should automatically include file fith class FindMe();
// if the class is not found, then it does nothing and then PHP triggers a "class not found" error
$test = new FindMe();

Return current item: Tracker