Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Migration Windows/OSX -> Ubuntu 11.10
  • Hello,
    In Windows and OSX this works well:
    <code>
    Autoloader::add_namespace('MaitrePylos',APPPATH.'vendor/MaitrePylos/' );
    </code>
    Under Ubuntu I have an error ' Not Found ' and so that it works I have to make this:
    <code>
    Autoloader::add_classes(array(
    'MaitrePylos\\TimeToSec' => APPPATH.'vendor/MaitrePylos/timeToSec.php',
    // Add classes you want to override here
    // Example: 'View' => APPPATH.'classes/view.php',
    ));
    </code>
    what is less practical, I can also build my own load of class, but then I go out of the functioning of FuelPhp.
    You would have an idea ? Thank you.
  • All paths are fully lowercase in Fuel as is clearly explained in the docs. It is however possible to add a namespace that confirms to the PSR-0 standard, thus if that's what is used you can set the third parameter of add_namespace() to true.
  • Thank you for the speed and the quality of this Forum:)

Howdy, Stranger!

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

In this Discussion