Import a module for usage.
By default modules will be loaded from the modules/ directory located within XPSPL.
| Parameters: |
|
|---|---|
| Return type: | void |
<?php
// Import the time module
xp_import('time');
<?php
// Import the "foobar" module from our custom module directory
xp_import('foobar', '/my-custom/directory/path');