Register a class prefix with lookup path. This will allow developers to register library packages with different class prefixes to the system autoloader. More than one lookup path may be registered for the same class prefix, but if this method is called with the reset flag set to true then any registered lookups for the given prefix will be overwritten with the current lookup path. When loaded, prefix paths are searched in a "last in, first out" order.
Signature
public function registerPrefix(string
$prefix,
[string
$path = false,
[boolean
$reset = false,
[boolean
$prepend = false]]] )
Parameters
$prefix
The class prefix to register.
$path
Absolute file path to the library root where classes with the given prefix can be found.
$reset
True to reset the prefix with only the given lookup path.
$prepend
If true, push the path to the beginning of the prefix lookup paths array.