Compile and return the given file for module, if allowed to do so
Usage
// basic usage
$string = $modulesFiles->compile($moduleName);
// usage with all arguments
$string = $modulesFiles->compile($moduleName, string $file = '', $namespace = null);
Arguments
Name | Type(s) | Description |
---|---|---|
moduleName | Module, string | |
file (optional) | string | Optionally specify the module filename as an optimization |
namespace (optional) | string, null | Optionally specify namespace as an optimization |
Return value
string
bool
ModulesFiles methods and properties
API reference based on ProcessWire core version 3.0.236