On Sun, 15 Jan 2006, Tobias Schlitt wrote:

> +function __autoload( $class_name )
> +{
> +    if ( ezcBase::autoload( $class_name ) )
> +    {
> +        return;
> +    }


> +    if ( strpos( $class_name, '_' ) !== false )
> +    {
> +        $file = str_replace( '_', '/', $class_name ) . '.php';
> +        require_once( $file );
> +    }

You don't need that part in your examples, that is only needed if you 
want to use it with some other library and is not our task to explain in 
ever single example that we provide. Just the following autoload method 
will do:

function __autoload( $className )
{
    ezcBase::autoload( $className );
}

Please also take care of our naming guidelines in the examples (ie: 
$className and not $class_name). (And yes, I might have that done wrong 
too).

regards,
Derick
-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to