__construct()
__construct(string $basePath = '', string $suffix = '')
Initializes object
Parameters
| string | $basePath | |
| string | $suffix |
Script Loader
This loader is for including files, which may or may not return a value.
load(string $path, array $data = array()) : mixed
Includes a PHP file and returns any result returned by the file.
| string | $path | Path to file. Beware that this is not an absolute path if you set the basePath or suffix in the constructor. |
| array | $data | An associative array of variables to be injected into the file. |