\Hazaar
Loader
Global class file loader

This class contains methods for auto-loading classes from files in the Hazaar library path. Ordinarily there will be no need for developers to use this class directly but it does contain a few methods for working with paths and library files.

This class is not meant to be instantiated directly and instances should be retrieved using the Loader::getInstance()method.

Example

$loader = Hazaar\Loader::getInstance(); $loader->loadController(‘index’);

p(notice notice-info) . The loader class is loaded automatically when starting the application. There should be no need to use the Loader instance directly and static methods have been provided for some extra functionality.

p(notice notice-warning) . Instantiating this class directly can have undefined results.

Tags

Since

1.0.0

Summary
Methods Properties Constants
No constants
Properties
$application
$application
Static
$instance
$instance
$paths
$paths
Methods
__construct()
__construct($application)
Initialise a new loader

p(notice notice-warning) . Do NOT instantiate this class directly. See Loader::getInstance() on how to get a new Loader instance.