Custom Module Libs
Jamroom Developers
GOAL : Create our own PHP libs with functions that all JR Custom modules can access
--
Question #1 : In raw PHP to get access to custom lib functions, we may use:
Include("libCore.php);
require_once("libCoreAPI.php");
This does not seem correct to use raw PHP includes inside JR custom modules:
Do you recommend we use raw PHP includes inside custom JR modules?
--
Question #2: Another method would be a custom JR Module used as a library, for example: sdLibCore
Inside sdLibCore module, for example contains "FunctionA" - like: sdLibCore.FunctionA()
In other custom JR Modules, how do we call the lib function: sdLibCore.FunctionA() ?
How to set scope for JR Module Functions, so they can be called from all other custom JR modules?
updated by @softdesigns: 07/09/17 07:13:33AM