System:Bootstrap:loadModule

From Aspen Documentation

Loads a module into the codebase that is not currently being loaded.

Since 1.0

Contents

Arguments

boolean loadModule (string $module)

module
A module GUID to load. Used for loading a secondary module from within code.

Returns

Returns boolean.

Notes

  • This code should not be used for setting module dependencies. For that, we recommend usemodule hooks.

Examples

The following will load in the Settings module.

$this->APP->loadModule('f801e330-c7ba-11dc-95ff-0800200c9a66');