Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Extending Autoloader
  • Hi all! I am trying to include ezComponents in my project. They have their own autoloader:
    ezcBase::autoload( $className );
    

    I tried subclassing FuelPHP's core Autoloader, but I am not sure how to override it - especially as it is not namespaced under \Fuel\Core, but under global namespace. I have seen the not at the bottom of http://docs.fuelphp.com/general/extending_core.html, but it doesn't tell me much (there is no Fuel\Core\Autoloader, for instance). I would appreciate some help, I'm stuck...
  • You can not extend the Autoloader at the moment, as you would need the autoloader to extend it. FuelPHP uses the standard SPL autoloading mechanism, you can just use spl_autoload_register() to register yours.
  • YES! Works like a charm. Thanks, Harro. :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion