Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Extending the Core : Fuel and Autoloader
  • Hello there, I would like to know what is the good way to extend the Fuel and Autoloader classes. We can't follow the regular process (as documented) because these 2 particular classes are loaded before the Autoloader (and the Autoloader can't load itself, obvsiously). For now I just hard-include them at the very top of my App boostrap, before the Core bootstrap, like this:
    // Fuel overloading
    require_once COREPATH.'classes'.DIRECTORY_SEPARATOR.'fuel.php';
    require_once CMSPATH.'classes'.DIRECTORY_SEPARATOR.'fuel.php';
    

    I'm more stucked for the Autoloader, since it's not part of the \Fuel\Core namespace and it's hard-coded in the global namespace. Is there a better way to achieve this?
    Thanks in advance for the anwser. :-) [edit] Forget all about Autoloader. I can just use plain PHP and spl_autoload_register...
  • Julian, You are really ripping Fuel apart aren't you :) Good luck with you project sound like a challenge :)

Howdy, Stranger!

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

In this Discussion