Core/Core
Abel Hoogeveen 2aef5abdd3 Implemented Helpers into FuzeWorks.
Helpers are small utilities that can be loaded to assist a performing certain functions. Helpers are simply global functions that get loaded when requesting them.

Helpers can be loaded using (\FuzeWorks\)Helpers::load('helperName'); Helpers can be put in the 'Core/Helpers' or the 'Application/Helpers' directory. The 'Applications/Helpers' directory is scanned first, so this one has priority over Core helpers.

It is possible to sort of 'extend' helpers. By putting a helper in the 'Application/Helpers' directory with the application prefix (found in config.main.php) you can load that helper first and then the helper in the core directory. This allows you to add or override functions without the need of copying the entire helper from the core. For example: there is a helper in the core directory named 'example_helper.php'. This one has a function named 'doSomething();' inside it. If you now create a helper in the application directory named 'MY_example_helper.php', then that one will be loaded first and can override the core class because the application helper is loaded first.

More detailed instructions will be provided in the documentation.
2016-05-14 14:06:04 +02:00
..
Events Implemented Helpers into FuzeWorks. 2016-05-14 14:06:04 +02:00
Helpers Implemented Helpers into FuzeWorks. 2016-05-14 14:06:04 +02:00
Libraries Implemented Helpers into FuzeWorks. 2016-05-14 14:06:04 +02:00
System Implemented Helpers into FuzeWorks. 2016-05-14 14:06:04 +02:00