Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Autoloader and classes with prefix name
  • Is there a way to load classes by Autoloader using classes prefixes?
    I want to add Elastica lib (http://ruflin.github.com/Elastica/) to vendor dir or packages dir, however i don't know how to add these classes to FuelPHP autoloader. All classes in Elastica lib starts with "Elastica_" and more underscores also match sub-directories (https://github.com/ruflin/Elastica/tree/master/lib/Elastica) Does something like this exists? addPrefixes(array(
    'Elastica' => __DIR__.'/elastica/lib',
    )); Thanks
  • No, there isn't. The FuelPHP understands our own mechanism, and the PSR-0 standard. This project isn't complaint with either of them. Probably the best thing to do is follow the authors instructions, and setup a specific autoloader for these files.

Howdy, Stranger!

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

In this Discussion