<?php
function __autoload($class) {
$fname = str_replace('_', '/', $class);
$fname = str_replace('eZ/', '', $fname);
$fname = strtolower($fname);
$fname .= '.php';
echo "Loading $fname...<br/>";
@include_once($fname);
}
$class = new eZ_Content_Object_Treenode;
?>
Output