I'm trying to play with the graphic component of EZ Components. I've
installed via pear on an ubuntu linux machine. I'm already using an autoload
method registered via spl_autoload_register so what I did was just a quick
check in my custom autoloader to see if the class name beings with ezc I do
a ezcBase::autoload( $className );
The issue is that it's still not autoloading the classes for the graphic
sample. base.php is included fine and I've tested that I can call the
autoload method, but it's not finding ezcGraphBarChart.
Is there some tweak I'm missing to use the EZC withing my own autoloader?
I've copied my autoloader sample below.
Thanks for the help.
Rick
--------------------------------------------
bootstrap.php
function autoLoad ($classname) {
// check for ezc class first
if (substr($classname, 0, 3) == 'ezc') {
ezcBase::autoload( $className );
} else {
$classfile = str_replace ('_', '/', $classname) . '.php';
include_once $classfile;
}
}
if(function_exists ('spl_autoload_register')) {
spl_autoload_register ('autoLoad');
} else {
throw new Exception('The autoload method spl_autload_register is not
supported by your php version. :(');
}
--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components