Version: v0.7.0 - Beta.  We welcome contributors & feedback.

Php.require

Php.require($phpFile) -> false

Description

Call PHP's require_once function on a file path.

The file path is always relative to code/php.

For convenience, you can use forward slashes in place of backslashes for namespace separators.

// Requires 'code/php/vendorLibrary/SomeClass.php'
Php.require('vendorLibrary/SomeClass.php')

See Also