FoilPHP/Foil

Autoload path - possible issue?

Closed this issue · 2 comments

Hi Giuseppe,

In documentation autoload path is:

require 'vendor/autoload.php';

However normally as the vendor folder is located above the public folder it should be :

require '../vendor/autoload.php';

or better

require_once DIR.'/../vendor/autoload.php';

Ionut

Hi Ionut, thanks for your interests in this package.

Actually, vendor folder is where you want it is...
Moreover, no one force you to use Foil from public folder.

So the line

require 'vendor/autoload.php';

Is just a placeholder and a reminder that you need to load Composer autoload to make it works. It's not exact code to copy and paste, because a code that works for everyone, in this case, does not exist.

This is correct, i now know it is a reminder. This is a great package.