fuel / docs

Fuel PHP Framework - Fuel v1.x documentation
http://fuelphp.com/docs
Other
168 stars 234 forks source link

How to add packages to always_load #462

Closed rikkiprince closed 11 years ago

rikkiprince commented 11 years ago

It is thoroughly unclear from http://fuelphp.com/docs/general/packages.html and http://fuelphp.com/docs/general/configuration.html that always_load is an array.

The Configuration page uses a notation of "always_load.packages" to indicate: array("always_load" => array("packages" => array(...) ) );

This notation is not explained anywhere, and is not a standard way of referring to multiple levels of arrays in PHP.

Perhaps ["always_load"]["packages"] would be a more appropriate notation?

In any case, it is absolutely essential that somewhere on the Packages page or in the example config.php should be an example of how to set one of these multi-level configuration options.

rikkiprince commented 11 years ago

fabled_1 summarises the problem neatly in http://fuelphp.com/forums/discussion/comment/11927#Comment_11927

rikkiprince commented 11 years ago

Thanks! The changes are excellent :-)